Merge pull request #129549 from kannon92/documentation-eviction-transition-duration

add documentation that 0s duration will be overwritten for 5m
This commit is contained in:
Kubernetes Prow Robot 2025-01-16 10:40:36 -08:00 committed by GitHub
commit a1bbf17d73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -64326,7 +64326,7 @@ func schema_k8sio_kubelet_config_v1beta1_KubeletConfiguration(ref common.Referen
},
"evictionPressureTransitionPeriod": {
SchemaProps: spec.SchemaProps{
Description: "evictionPressureTransitionPeriod is the duration for which the kubelet has to wait before transitioning out of an eviction pressure condition. Default: \"5m\"",
Description: "evictionPressureTransitionPeriod is the duration for which the kubelet has to wait before transitioning out of an eviction pressure condition. A duration of 0s will be converted to the default value of 5m Default: \"5m\"",
Ref: ref("k8s.io/apimachinery/pkg/apis/meta/v1.Duration"),
},
},

View File

@ -530,6 +530,7 @@ type KubeletConfiguration struct {
EvictionSoftGracePeriod map[string]string `json:"evictionSoftGracePeriod,omitempty"`
// evictionPressureTransitionPeriod is the duration for which the kubelet has to wait
// before transitioning out of an eviction pressure condition.
// A duration of 0s will be converted to the default value of 5m
// Default: "5m"
// +optional
EvictionPressureTransitionPeriod metav1.Duration `json:"evictionPressureTransitionPeriod,omitempty"`