Merge pull request #109251 from krmayankk/kubectl-stateful

add maxunavailable to kubectl describe

Kubernetes-commit: 7061876169716feefbcafb41a37e33f3d7b51822
This commit is contained in:
Kubernetes Publisher 2022-05-03 19:29:53 -07:00
commit f69f9ad093
1 changed files with 3 additions and 0 deletions

View File

@ -3702,6 +3702,9 @@ func describeStatefulSet(ps *appsv1.StatefulSet, selector labels.Selector, event
ru := ps.Spec.UpdateStrategy.RollingUpdate ru := ps.Spec.UpdateStrategy.RollingUpdate
if ru.Partition != nil { if ru.Partition != nil {
w.Write(LEVEL_1, "Partition:\t%d\n", *ru.Partition) w.Write(LEVEL_1, "Partition:\t%d\n", *ru.Partition)
if ru.MaxUnavailable != nil {
w.Write(LEVEL_1, "MaxUnavailable:\t%s\n", ru.MaxUnavailable.String())
}
} }
} }