diff --git a/contrib/completions/bash/kubectl b/contrib/completions/bash/kubectl index 4bb1d24feb2..1f2bd42bd2e 100644 --- a/contrib/completions/bash/kubectl +++ b/contrib/completions/bash/kubectl @@ -392,6 +392,7 @@ _kubectl_describe() must_have_one_noun+=("deployment") must_have_one_noun+=("endpoints") must_have_one_noun+=("horizontalpodautoscaler") + must_have_one_noun+=("horizontalpodautoscaler") must_have_one_noun+=("ingress") must_have_one_noun+=("job") must_have_one_noun+=("job") diff --git a/pkg/kubectl/describe.go b/pkg/kubectl/describe.go index cbc17e3b587..07462a55b32 100644 --- a/pkg/kubectl/describe.go +++ b/pkg/kubectl/describe.go @@ -1587,6 +1587,11 @@ func (d *HorizontalPodAutoscalerDescriber) Describe(namespace, name string) (str fmt.Fprintf(out, "failed to check Replication Controller\n") } } + + events, _ := d.client.Events(namespace).Search(hpa) + if events != nil { + DescribeEvents(events, out) + } return nil }) }