Skip to content

Commit

Permalink
chore: use v2beta1 in policy exceptions (#779)
Browse files Browse the repository at this point in the history
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
  • Loading branch information
MariamFahmy98 authored Oct 9, 2023
1 parent bc28946 commit 3b7d0a3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ annotations:
kyverno/category: "Other"
kyverno/kubernetesVersion: "1.24"
kyverno/subject: "PolicyException"
digest: d460ec5a86554ec9e47781e23188598fb71b4e574910493757860f2757c801a1
digest: 47af946fa7dde4c75c13b3edb3f3ff0bf1c2e481f4e6b34dd443f38500c9a438
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions other/m-q/policy-for-exceptions/policy-bad.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: badpe01
Expand All @@ -12,7 +12,7 @@ spec:
- rule02
match: {}
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: badpe02
Expand All @@ -33,7 +33,7 @@ spec:
namespace: some-ns
name: kube-admin
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: badpe03
Expand All @@ -54,7 +54,7 @@ spec:
namespace: some-ns
name: kube-admin
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: badpe04
Expand All @@ -77,7 +77,7 @@ spec:
namespace: some-ns
name: kube-admin
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: badpe05
Expand All @@ -96,7 +96,7 @@ spec:
namespaces:
- policy-exceptions-ns
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: badpe06
Expand Down
8 changes: 4 additions & 4 deletions other/m-q/policy-for-exceptions/policy-good.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: goodpe01
Expand All @@ -9,7 +9,7 @@ spec:
- rule01
match: {}
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: goodpe02
Expand All @@ -33,7 +33,7 @@ spec:
namespace: some-ns
name: kube-admin
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: goodpe03
Expand All @@ -58,7 +58,7 @@ spec:
namespace: some-ns
name: kube-admin
---
apiVersion: kyverno.io/v2alpha1
apiVersion: kyverno.io/v2beta1
kind: PolicyException
metadata:
name: goodpe04
Expand Down

0 comments on commit 3b7d0a3

Please sign in to comment.