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:
parent
72524c792c
commit
96e223657e
2 changed files with 30 additions and 34 deletions
|
@ -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:
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue