Skip to content

support SMP in appropriate types #2514

@sascha-tanke-bdr

Description

@sascha-tanke-bdr

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:

Servers []Server `json:"servers,omitempty"`

Would be nice to add this to all appropriate types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions