resourceclaim: copy template annotations before creating claims
The controller reused the annotations map from the shared informer-cached ResourceClaimTemplate and added the pod-claim-name annotation to it, mutating the lister object (documented as immutable) and racing between workers that create claims from the same template. Copy the annotations with maps.Clone before adding the controller-owned annotation, in both the Pod and PodGroup paths. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
T
thc1006 committed
7365a940b0efe8727d5521e4d29b4b0aad30d40a
Parent: a818af1