add spec.host as a synonym for spec.nodeName in v1

This commit is contained in:
Brendan Burns 2015-07-10 15:13:43 -07:00
parent 906cc743be
commit 2f47b3ed11

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)
}