Merge pull request #12112 from JanetKuo/update-kubectl-get-pods-running

Hide terminated pods in 'kubectl' Printer by default
This commit is contained in:
Saad Ali
2015-08-19 12:51:18 -07:00
27 changed files with 402 additions and 92 deletions

View File

@@ -261,6 +261,7 @@ const (
NodeUnschedulable = "spec.unschedulable"
ObjectNameField = "metadata.name"
PodHost = "spec.nodeName"
PodStatus = "status.phase"
SecretType = "type"
EventReason = "reason"
@@ -318,7 +319,8 @@ var fieldMappings = versionToResourceToFieldMapping{
NodeUnschedulable: "spec.unschedulable",
},
"pods": clientFieldNameToAPIVersionFieldName{
PodHost: "spec.nodeName",
PodHost: "spec.nodeName",
PodStatus: "status.phase",
},
"secrets": clientFieldNameToAPIVersionFieldName{
SecretType: "type",