mirror of https://github.com/k3s-io/k3s
Merge pull request #57657 from kkmsft/kubectl-providerID
Automatic merge from submit-queue (batch tested with PRs 57699, 57657). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add 'ProviderID' to the output of kubectl describe node.... **What this PR does / why we need it**: This PR adds displaying 'ProviderID' field in the kubectl describe node.. command output. **Release note**: ```release-note NONE ```pull/6/head
commit
b48e288ead
|
@ -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