-
Notifications
You must be signed in to change notification settings - Fork 583
Description
Some type definitions are not supporting strategic merge patches (SMP). This makes it hard, to patch resources from different sides.
An example:
An ArgoCD rolles out a patch to .spec.servers in dnses.operator.openshift.io, as it defines some forwards for special dns setups. On top Submariner Operator wants to patch its lighthouse forward into the same resource. That isn't working, as SMP is not support via a mergeKey (https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/#merge-individual-elements-of-a-list-of-complex-elements, https://github.com/kubernetes/apimachinery/blob/268a6d0fb19c92c9665e8f5cd85b564557038dc1/pkg/util/strategicpatch/patch.go#L321). This could be made possible by adding patchMergeKey to:
Line 55 in bfcb56b
| Servers []Server `json:"servers,omitempty"` |
Would be nice to add this to all appropriate types.