Skip to content
Permalink
Browse files

Merge pull request #72781 from tghartland/deref-describe-sts-replicas

Dereference number of replicas in describe statefulset
  • Loading branch information...
k8s-ci-robot committed Jan 11, 2019
2 parents 1cfdb96 + 1bcab05 commit 40de2eeca0d8a99c78293f443d0d8e1ee5913852
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkg/kubectl/describe/versioned/describe.go
@@ -2959,7 +2959,7 @@ func describeStatefulSet(ps *appsv1.StatefulSet, selector labels.Selector, event
w.Write(LEVEL_0, "Selector:\t%s\n", selector)
printLabelsMultiline(w, "Labels", ps.Labels)
printAnnotationsMultiline(w, "Annotations", ps.Annotations)
w.Write(LEVEL_0, "Replicas:\t%d desired | %d total\n", ps.Spec.Replicas, ps.Status.Replicas)
w.Write(LEVEL_0, "Replicas:\t%d desired | %d total\n", *ps.Spec.Replicas, ps.Status.Replicas)
w.Write(LEVEL_0, "Update Strategy:\t%s\n", ps.Spec.UpdateStrategy.Type)
if ps.Spec.UpdateStrategy.RollingUpdate != nil {
ru := ps.Spec.UpdateStrategy.RollingUpdate

0 comments on commit 40de2ee

Please sign in to comment.
You can’t perform that action at this time.