fix the left pre V1 field names in 290c4618c331f4f30a278af520121ff35
This commit is contained in:
@@ -42,7 +42,7 @@ func addConversionFuncs() {
|
||||
case "metadata.name",
|
||||
"metadata.namespace",
|
||||
"status.phase",
|
||||
"spec.host":
|
||||
"spec.nodeName":
|
||||
return label, value, nil
|
||||
default:
|
||||
return "", "", fmt.Errorf("field label not supported: %s", label)
|
||||
|
@@ -53,9 +53,10 @@ func addConversionFuncs() {
|
||||
switch label {
|
||||
case "metadata.name",
|
||||
"metadata.namespace",
|
||||
"status.phase",
|
||||
"spec.host":
|
||||
"status.phase":
|
||||
return label, value, nil
|
||||
case "spec.host":
|
||||
return "spec.nodeName", value, nil
|
||||
default:
|
||||
return "", "", fmt.Errorf("field label not supported: %s", label)
|
||||
}
|
||||
|
Reference in New Issue
Block a user