add documentation that 0s duration will be overwritten for 5m

This commit is contained in:
Kevin Hannon 2025-01-09 09:49:35 -05:00
parent 75531ccc9c
commit 0899cf892d
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"`