From a95ef0213f34f39f68ea57e959a24284be89d711 Mon Sep 17 00:00:00 2001 From: Mariam Fahmy Date: Wed, 7 Aug 2024 16:22:05 +0300 Subject: [PATCH] fix: use generateExisting instead of generateExistingOnPolicyUpdate (#1119) Signed-off-by: Mariam Fahmy --- .../argo-cluster-generation-from-rancher-capi.yaml | 2 +- .../artifacthub-pkg.yml | 2 +- .../artifacthub-pkg.yml | 2 +- .../config-syncer-secret-generation-from-rancher-capi.yaml | 2 +- other/generate-networkpolicy-existing/artifacthub-pkg.yml | 2 +- .../generate-networkpolicy-existing.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/argo/argo-cluster-generation-from-rancher-capi/argo-cluster-generation-from-rancher-capi.yaml b/argo/argo-cluster-generation-from-rancher-capi/argo-cluster-generation-from-rancher-capi.yaml index 6c4b889dc..bf16f6401 100644 --- a/argo/argo-cluster-generation-from-rancher-capi/argo-cluster-generation-from-rancher-capi.yaml +++ b/argo/argo-cluster-generation-from-rancher-capi/argo-cluster-generation-from-rancher-capi.yaml @@ -19,7 +19,7 @@ metadata: "Cluster-API cluster auto-registration" and Rancher issue https://github.com/rancher/rancher/issues/38053 "Fix type and labels Rancher v2 provisioner specifies when creating CAPI Cluster Secret". spec: - generateExistingOnPolicyUpdate: true + generateExisting: true rules: - name: source-rancher-non-local-cluster-and-capi-secret match: diff --git a/argo/argo-cluster-generation-from-rancher-capi/artifacthub-pkg.yml b/argo/argo-cluster-generation-from-rancher-capi/artifacthub-pkg.yml index ab582087d..66afffd14 100644 --- a/argo/argo-cluster-generation-from-rancher-capi/artifacthub-pkg.yml +++ b/argo/argo-cluster-generation-from-rancher-capi/artifacthub-pkg.yml @@ -19,4 +19,4 @@ annotations: kyverno/category: "Argo" kyverno/kubernetesVersion: "1.23" kyverno/subject: "Secret" -digest: ddc3b0655fa1302142238ec869466e5f2ce2547f2f683effc7e5b0a813803b54 +digest: 955247857bea3c8e70733e8dc214406319f08ded53700ba42a8bc59dfcf94aa5 diff --git a/kubeops/config-syncer-secret-generation-from-rancher-capi/artifacthub-pkg.yml b/kubeops/config-syncer-secret-generation-from-rancher-capi/artifacthub-pkg.yml index 7d08b5010..0b3e4f859 100644 --- a/kubeops/config-syncer-secret-generation-from-rancher-capi/artifacthub-pkg.yml +++ b/kubeops/config-syncer-secret-generation-from-rancher-capi/artifacthub-pkg.yml @@ -19,4 +19,4 @@ annotations: kyverno/category: "Kubeops" kyverno/kubernetesVersion: "1.23" kyverno/subject: "Secret" -digest: f45a05bf32cc4f14e962c58b62fbb69144d04a04a97abb08fe69e6c5843eb8e5 +digest: 9ce7e5f048b29eeef789ebf868ed508a593a43a49b3ae76a8e031160779d77bf diff --git a/kubeops/config-syncer-secret-generation-from-rancher-capi/config-syncer-secret-generation-from-rancher-capi.yaml b/kubeops/config-syncer-secret-generation-from-rancher-capi/config-syncer-secret-generation-from-rancher-capi.yaml index 4d2abb202..bbe146fbd 100644 --- a/kubeops/config-syncer-secret-generation-from-rancher-capi/config-syncer-secret-generation-from-rancher-capi.yaml +++ b/kubeops/config-syncer-secret-generation-from-rancher-capi/config-syncer-secret-generation-from-rancher-capi.yaml @@ -16,7 +16,7 @@ metadata: required by the Kubeops Config Syncer for it to sync ConfigMaps/Secrets from the Rancher management cluster to downstream clusters. spec: - generateExistingOnPolicyUpdate: true + generateExisting: true rules: - name: source-rancher-non-local-cluster-and-capi-secret match: diff --git a/other/generate-networkpolicy-existing/artifacthub-pkg.yml b/other/generate-networkpolicy-existing/artifacthub-pkg.yml index a681e1d91..250dcff9a 100644 --- a/other/generate-networkpolicy-existing/artifacthub-pkg.yml +++ b/other/generate-networkpolicy-existing/artifacthub-pkg.yml @@ -19,4 +19,4 @@ annotations: kyverno/category: "Other" kyverno/kubernetesVersion: "1.23" kyverno/subject: "Namespace, NetworkPolicy" -digest: 4cf8c5f46d007fdeb4f4da902003f65cbf9c783458ec752c342e5521eccf8c38 +digest: 4b22640f313949b16d47e144996489a7070e952b06e68f3ad1dc9ee5e013d976 diff --git a/other/generate-networkpolicy-existing/generate-networkpolicy-existing.yaml b/other/generate-networkpolicy-existing/generate-networkpolicy-existing.yaml index 27bfa2c27..cbb2069d4 100644 --- a/other/generate-networkpolicy-existing/generate-networkpolicy-existing.yaml +++ b/other/generate-networkpolicy-existing/generate-networkpolicy-existing.yaml @@ -17,7 +17,7 @@ metadata: is additional overhead. This policy creates a new NetworkPolicy for existing Namespaces which results in a default deny behavior and labels it with created-by=kyverno. spec: - generateExistingOnPolicyUpdate: true + generateExisting: true rules: - name: generate-existing-networkpolicy match: