mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
add spec.host as a synonym for spec.nodeName in v1
This commit is contained in:
parent
906cc743be
commit
2f47b3ed11
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user