Merge pull request #36171 from kargakis/kubectl-changes-for-failed-deployments
Automatic merge from submit-queue kubectl: enhancements for deployment progress deadline Changes: * add deployment conditions in the describer * abort 'rollout status' for deployments that have exceeded their progress deadline Depends on https://github.com/kubernetes/kubernetes/pull/35691. @kubernetes/kubectl @kubernetes/deployment Fixes https://github.com/kubernetes/kubernetes/issues/31319
This commit is contained in:
@@ -2161,6 +2161,13 @@ func (dd *DeploymentDescriber) Describe(namespace, name string, describerSetting
|
||||
ru := d.Spec.Strategy.RollingUpdate
|
||||
fmt.Fprintf(out, "RollingUpdateStrategy:\t%s max unavailable, %s max surge\n", ru.MaxUnavailable.String(), ru.MaxSurge.String())
|
||||
}
|
||||
if len(d.Status.Conditions) > 0 {
|
||||
fmt.Fprint(out, "Conditions:\n Type\tStatus\tReason\n")
|
||||
fmt.Fprint(out, " ----\t------\t------\n")
|
||||
for _, c := range d.Status.Conditions {
|
||||
fmt.Fprintf(out, " %v \t%v\t%v\n", c.Type, c.Status, c.Reason)
|
||||
}
|
||||
}
|
||||
oldRSs, _, newRS, err := deploymentutil.GetAllReplicaSets(d, dd)
|
||||
if err == nil {
|
||||
fmt.Fprintf(out, "OldReplicaSets:\t%s\n", printReplicaSetsByLabels(oldRSs))
|
||||
|
Reference in New Issue
Block a user