Commit db867c0c authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

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/kubectl
parents 68b93b05 588ad30d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment