mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Remove misleading comment from NodeTaint TimeAdded field
This commit is contained in:
parent
8b00a96b51
commit
c4d6fcb197
7 changed files with 4 additions and 7 deletions
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
|
|
@ -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.",
|
||||
|
|
|
|||
2
api/openapi-spec/v3/api__v1_openapi.json
generated
2
api/openapi-spec/v3/api__v1_openapi.json
generated
|
|
@ -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.",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
|
|
@ -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"),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue