From 3b7d0a320a35c41b2f727ca3603444597ce813ed Mon Sep 17 00:00:00 2001 From: Mariam Fahmy Date: Mon, 9 Oct 2023 14:52:06 +0300 Subject: [PATCH] chore: use v2beta1 in policy exceptions (#779) Signed-off-by: Mariam Fahmy --- .../artifacthub-pkg.yml | 2 +- .../expiration-for-policyexceptions.yaml | 2 +- other/m-q/policy-for-exceptions/policy-bad.yaml | 12 ++++++------ other/m-q/policy-for-exceptions/policy-good.yaml | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/other/e-l/expiration-for-policyexceptions/artifacthub-pkg.yml b/other/e-l/expiration-for-policyexceptions/artifacthub-pkg.yml index 673622eff..25031af9c 100644 --- a/other/e-l/expiration-for-policyexceptions/artifacthub-pkg.yml +++ b/other/e-l/expiration-for-policyexceptions/artifacthub-pkg.yml @@ -19,4 +19,4 @@ annotations: kyverno/category: "Other" kyverno/kubernetesVersion: "1.24" kyverno/subject: "PolicyException" -digest: d460ec5a86554ec9e47781e23188598fb71b4e574910493757860f2757c801a1 +digest: 47af946fa7dde4c75c13b3edb3f3ff0bf1c2e481f4e6b34dd443f38500c9a438 diff --git a/other/e-l/expiration-for-policyexceptions/expiration-for-policyexceptions.yaml b/other/e-l/expiration-for-policyexceptions/expiration-for-policyexceptions.yaml index cfb98a60e..870237e64 100644 --- a/other/e-l/expiration-for-policyexceptions/expiration-for-policyexceptions.yaml +++ b/other/e-l/expiration-for-policyexceptions/expiration-for-policyexceptions.yaml @@ -27,7 +27,7 @@ spec: kinds: - PolicyException generate: - apiVersion: kyverno.io/v2alpha1 + apiVersion: kyverno.io/v2beta1 kind: ClusterCleanupPolicy name: polex-{{ request.namespace }}-{{ request.object.metadata.name }}-{{ random('[0-9a-z]{8}') }} synchronize: false diff --git a/other/m-q/policy-for-exceptions/policy-bad.yaml b/other/m-q/policy-for-exceptions/policy-bad.yaml index 7bd90db03..1fcad045e 100644 --- a/other/m-q/policy-for-exceptions/policy-bad.yaml +++ b/other/m-q/policy-for-exceptions/policy-bad.yaml @@ -1,4 +1,4 @@ -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: badpe01 @@ -12,7 +12,7 @@ spec: - rule02 match: {} --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: badpe02 @@ -33,7 +33,7 @@ spec: namespace: some-ns name: kube-admin --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: badpe03 @@ -54,7 +54,7 @@ spec: namespace: some-ns name: kube-admin --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: badpe04 @@ -77,7 +77,7 @@ spec: namespace: some-ns name: kube-admin --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: badpe05 @@ -96,7 +96,7 @@ spec: namespaces: - policy-exceptions-ns --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: badpe06 diff --git a/other/m-q/policy-for-exceptions/policy-good.yaml b/other/m-q/policy-for-exceptions/policy-good.yaml index ed129fbba..7153eb978 100644 --- a/other/m-q/policy-for-exceptions/policy-good.yaml +++ b/other/m-q/policy-for-exceptions/policy-good.yaml @@ -1,4 +1,4 @@ -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: goodpe01 @@ -9,7 +9,7 @@ spec: - rule01 match: {} --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: goodpe02 @@ -33,7 +33,7 @@ spec: namespace: some-ns name: kube-admin --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: goodpe03 @@ -58,7 +58,7 @@ spec: namespace: some-ns name: kube-admin --- -apiVersion: kyverno.io/v2alpha1 +apiVersion: kyverno.io/v2beta1 kind: PolicyException metadata: name: goodpe04