mirror of https://github.com/k3s-io/k3s
Add 'ProviderID' to the output of kubectl describe node....
parent
18758f502c
commit
afb23afdb9
|
@ -2635,6 +2635,9 @@ func describeNode(node *api.Node, nodeNonTerminatedPodsList *api.PodList, events
|
|||
if len(node.Spec.ExternalID) > 0 {
|
||||
w.Write(LEVEL_0, "ExternalID:\t%s\n", node.Spec.ExternalID)
|
||||
}
|
||||
if len(node.Spec.ProviderID) > 0 {
|
||||
w.Write(LEVEL_0, "ProviderID:\t%s\n", node.Spec.ProviderID)
|
||||
}
|
||||
if canViewPods && nodeNonTerminatedPodsList != nil {
|
||||
if err := describeNodeResource(nodeNonTerminatedPodsList, node, w); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue