mirror of https://github.com/k3s-io/k3s
Merge pull request #60880 from wojtek-t/fix_pod_to_selectable_fields
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Avoid reallocating of map in PodToSelectableFields Ref #60589pull/6/head
commit
5364f7beb8
|
@ -237,7 +237,7 @@ func PodToSelectableFields(pod *api.Pod) fields.Set {
|
|||
// amount of allocations needed to create the fields.Set. If you add any
|
||||
// field here or the number of object-meta related fields changes, this should
|
||||
// be adjusted.
|
||||
podSpecificFieldsSet := make(fields.Set, 7)
|
||||
podSpecificFieldsSet := make(fields.Set, 8)
|
||||
podSpecificFieldsSet["spec.nodeName"] = pod.Spec.NodeName
|
||||
podSpecificFieldsSet["spec.restartPolicy"] = string(pod.Spec.RestartPolicy)
|
||||
podSpecificFieldsSet["spec.schedulerName"] = string(pod.Spec.SchedulerName)
|
||||
|
|
Loading…
Reference in New Issue