Merge pull request #11084 from brendandburns/fix

add spec.host as a synonym for spec.nodeName in v1
This commit is contained in:
Zach Loafman 2015-07-10 18:50:23 -07:00
commit 196ed7dc5b

View File

@ -44,6 +44,9 @@ func addConversionFuncs() {
"status.phase",
"spec.nodeName":
return label, value, nil
// This is for backwards compatability with old v1 clients which send spec.host
case "spec.host":
return "spec.nodeName", value, nil
default:
return "", "", fmt.Errorf("field label not supported: %s", label)
}