Commit 2f47b3ed authored by Brendan Burns's avatar Brendan Burns

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

parent 906cc743
......@@ -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)
}
......
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