Remove misleading comment from NodeTaint TimeAdded field

This commit is contained in:
Vlad Vasilyeu 2025-05-13 15:35:21 +00:00
parent 8b00a96b51
commit c4d6fcb197
7 changed files with 4 additions and 7 deletions

View file

@ -11796,7 +11796,7 @@
},
"timeAdded": {
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time",
"description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints."
"description": "TimeAdded represents the time at which the taint was added."
},
"value": {
"description": "The taint value corresponding to the taint key.",

View file

@ -7990,7 +7990,7 @@
"$ref": "#/components/schemas/io.k8s.apimachinery.pkg.apis.meta.v1.Time"
}
],
"description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints."
"description": "TimeAdded represents the time at which the taint was added."
},
"value": {
"description": "The taint value corresponding to the taint key.",

View file

@ -3423,7 +3423,6 @@ type Taint struct {
// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
Effect TaintEffect
// TimeAdded represents the time at which the taint was added.
// It is only written for NoExecute taints.
// +optional
TimeAdded *metav1.Time
}

View file

@ -32457,7 +32457,7 @@ func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPI
},
"timeAdded": {
SchemaProps: spec.SchemaProps{
Description: "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.",
Description: "TimeAdded represents the time at which the taint was added.",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Time"),
},
},

View file

@ -6300,7 +6300,6 @@ message Taint {
optional string effect = 3;
// TimeAdded represents the time at which the taint was added.
// It is only written for NoExecute taints.
// +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4;
}

View file

@ -3806,7 +3806,6 @@ type Taint struct {
// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
Effect TaintEffect `json:"effect" protobuf:"bytes,3,opt,name=effect,casttype=TaintEffect"`
// TimeAdded represents the time at which the taint was added.
// It is only written for NoExecute taints.
// +optional
TimeAdded *metav1.Time `json:"timeAdded,omitempty" protobuf:"bytes,4,opt,name=timeAdded"`
}

View file

@ -2587,7 +2587,7 @@ var map_Taint = map[string]string{
"key": "Required. The taint key to be applied to a node.",
"value": "The taint value corresponding to the taint key.",
"effect": "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.",
"timeAdded": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.",
"timeAdded": "TimeAdded represents the time at which the taint was added.",
}
func (Taint) SwaggerDoc() map[string]string {