fix the left pre V1 field names in 290c4618c331f4f30a278af520121ff35

This commit is contained in:
Chao Xu
2015-06-18 18:36:23 -07:00
parent f990899290
commit 5673f73378
5 changed files with 10 additions and 13 deletions

View File

@@ -260,7 +260,7 @@ const (
// Will be automatically emitted as the correct name for the API version.
NodeUnschedulable = "spec.unschedulable"
ObjectNameField = "metadata.name"
PodHost = "spec.host"
PodHost = "spec.nodeName"
SecretType = "type"
EventReason = "reason"
@@ -351,12 +351,8 @@ var fieldMappings = versionToResourceToFieldMapping{
ObjectNameField: "metadata.name",
NodeUnschedulable: "spec.unschedulable",
},
"minions": clientFieldNameToAPIVersionFieldName{
ObjectNameField: "metadata.name",
NodeUnschedulable: "spec.unschedulable",
},
"pods": clientFieldNameToAPIVersionFieldName{
PodHost: "spec.host",
PodHost: "spec.nodeName",
},
"secrets": clientFieldNameToAPIVersionFieldName{
SecretType: "type",