mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 09:47:06 +00:00
Added events to kubectl describe hpa
This commit is contained in:
@@ -392,6 +392,7 @@ _kubectl_describe()
|
|||||||
must_have_one_noun+=("deployment")
|
must_have_one_noun+=("deployment")
|
||||||
must_have_one_noun+=("endpoints")
|
must_have_one_noun+=("endpoints")
|
||||||
must_have_one_noun+=("horizontalpodautoscaler")
|
must_have_one_noun+=("horizontalpodautoscaler")
|
||||||
|
must_have_one_noun+=("horizontalpodautoscaler")
|
||||||
must_have_one_noun+=("ingress")
|
must_have_one_noun+=("ingress")
|
||||||
must_have_one_noun+=("job")
|
must_have_one_noun+=("job")
|
||||||
must_have_one_noun+=("job")
|
must_have_one_noun+=("job")
|
||||||
|
@@ -1587,6 +1587,11 @@ func (d *HorizontalPodAutoscalerDescriber) Describe(namespace, name string) (str
|
|||||||
fmt.Fprintf(out, "failed to check Replication Controller\n")
|
fmt.Fprintf(out, "failed to check Replication Controller\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
events, _ := d.client.Events(namespace).Search(hpa)
|
||||||
|
if events != nil {
|
||||||
|
DescribeEvents(events, out)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user