mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 05:36:12 +00:00
fix the left pre V1 field names in 290c4618c331f4f30a278af520121ff35
This commit is contained in:
@@ -260,7 +260,7 @@ const (
|
||||
// Will be automatically emitted as the correct name for the API version.
|
||||
NodeUnschedulable = "spec.unschedulable"
|
||||
ObjectNameField = "metadata.name"
|
||||
PodHost = "spec.host"
|
||||
PodHost = "spec.nodeName"
|
||||
SecretType = "type"
|
||||
|
||||
EventReason = "reason"
|
||||
@@ -351,12 +351,8 @@ var fieldMappings = versionToResourceToFieldMapping{
|
||||
ObjectNameField: "metadata.name",
|
||||
NodeUnschedulable: "spec.unschedulable",
|
||||
},
|
||||
"minions": clientFieldNameToAPIVersionFieldName{
|
||||
ObjectNameField: "metadata.name",
|
||||
NodeUnschedulable: "spec.unschedulable",
|
||||
},
|
||||
"pods": clientFieldNameToAPIVersionFieldName{
|
||||
PodHost: "spec.host",
|
||||
PodHost: "spec.nodeName",
|
||||
},
|
||||
"secrets": clientFieldNameToAPIVersionFieldName{
|
||||
SecretType: "type",
|
||||
|
Reference in New Issue
Block a user