You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When applying a mutation with patchStrategicMerge to a list, the substitution that occurs with {{*}} will apply the result from the first element of the list to all items in the list. Instead this should potentially apply the substitution to each item in the list. This can be seen with the replace-image-registry policy applied to a deployment/pod that has more than 1 container. All containers will have the result of the substitution against the first container's values.
@realshuting, I think this is the same problem as I mentioned in my proposal for global anchors. It seems like conditional anchor doesn't work as expected in lists in patchStrategicMerge
Software version numbers
Describe the bug
When applying a mutation with patchStrategicMerge to a list, the substitution that occurs with
{{*}}
will apply the result from the first element of the list to all items in the list. Instead this should potentially apply the substitution to each item in the list. This can be seen with the replace-image-registry policy applied to a deployment/pod that has more than 1 container. All containers will have the result of the substitution against the first container's values.To Reproduce
Apply the policy:
Then apply a deployment:
The result is:
The expected result is:
The text was updated successfully, but these errors were encountered: