ITADN

support SMP in appropriate types

#2514Closedsascha-tanke-bdr 创建于 2025-10-02
lifecycle/rotten
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: https://github.com/openshift/api/blob/bfcb56b390563c584d132ee0728f6ffc660e8e15/operator/v1/types_dns.go#L55 Would be nice to add this to all appropriate types.
关闭于 2026-03-22 5 条评论