mirror of https://github.com/k3s-io/k3s
Merge pull request #36396 from aveshagarwal/master-display-pod-node-selectors
Automatic merge from submit-queue (batch tested with PRs 38783, 36396) Display pod node selectors with kubectl describe. **What this PR does / why we need it**: This PR fixes kubectl describe so that it now shows associated node selectors with pods. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ``` @kubernetes/rh-cluster-infra @kubernetes/kubectlpull/6/head
commit
db867c0c9d
|
@ -540,6 +540,7 @@ func describePod(pod *api.Pod, events *api.EventList) (string, error) {
|
|||
}
|
||||
describeVolumes(pod.Spec.Volumes, w, "")
|
||||
w.Write(LEVEL_0, "QoS Class:\t%s\n", qos.InternalGetPodQOS(pod))
|
||||
printLabelsMultiline(w, "Node-Selectors", pod.Spec.NodeSelector)
|
||||
printTolerationsInAnnotationMultiline(w, "Tolerations", pod.Annotations)
|
||||
if events != nil {
|
||||
DescribeEvents(events, w)
|
||||
|
|
Loading…
Reference in New Issue