1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 18:38:40 +00:00

fix: remove the additional dash in kyverno create exception (#8983)

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
This commit is contained in:
Mariam Fahmy 2023-11-22 15:37:26 +02:00 committed by GitHub
parent 72524c792c
commit 96e223657e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 34 deletions

View file

@ -49,12 +49,11 @@ spec:
background: true
match:
any:
-
kinds:
- Pod
- Deployment
names:
- test-*
- kinds:
- Pod
- Deployment
names:
- test-*
exceptions:
- policyName: policy
ruleNames:
@ -82,16 +81,15 @@ spec:
background: true
match:
all:
-
kinds:
- Pod
- Deployment
names:
- test-*
namespaces:
- test
operations:
- UPDATE
- kinds:
- Pod
- Deployment
names:
- test-*
namespaces:
- test
operations:
- UPDATE
exceptions:
- policyName: policy
ruleNames:

View file

@ -10,29 +10,28 @@ spec:
{{- with .Match.Any }}
any:
{{- range . }}
-
{{- with .Kinds }}
kinds:
- kinds:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Names }}
names:
names:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Namespaces }}
namespaces:
namespaces:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Operations }}
operations:
operations:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}
@ -41,29 +40,28 @@ spec:
{{- with .Match.All }}
all:
{{- range . }}
-
{{- with .Kinds }}
kinds:
- kinds:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Names }}
names:
names:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Namespaces }}
namespaces:
namespaces:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- with .Operations }}
operations:
operations:
{{- range . }}
- {{ . }}
- {{ . }}
{{- end }}
{{- end }}
{{- end }}