From 556ceb843bacee8466930e2e793f56d50b590b61 Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Sun, 13 Oct 2024 19:06:54 +0200 Subject: [PATCH] remove `app.kubernetes.io/instance: cert-manager` label from cert-manager CRD --- cert-manager/kustomization.yaml | 6 ++++++ cert-manager/remove-instance-label.jsonpatch.yaml | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 cert-manager/remove-instance-label.jsonpatch.yaml diff --git a/cert-manager/kustomization.yaml b/cert-manager/kustomization.yaml index 2b8efbc..56ff7dc 100644 --- a/cert-manager/kustomization.yaml +++ b/cert-manager/kustomization.yaml @@ -6,3 +6,9 @@ namespace: cert-manager resources: - https://github.com/cert-manager/cert-manager/releases/download/v1.16.1/cert-manager.yaml - ./base/mziesel-ca.yaml + +patches: + - path: ./remove-instance-label.jsonpatch.yaml + target: + kind: CustomResourceDefinition + labelSelector: app.kubernetes.io/instance=cert-manager diff --git a/cert-manager/remove-instance-label.jsonpatch.yaml b/cert-manager/remove-instance-label.jsonpatch.yaml new file mode 100644 index 0000000..60ae190 --- /dev/null +++ b/cert-manager/remove-instance-label.jsonpatch.yaml @@ -0,0 +1,3 @@ +--- +- op: remove + path: /metadata/labels/app.kubernetes.io~1instance