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

Fix background scan with request.operation (#4947)

* update version drop-down

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* Add workflow to detect and report on image vulnerabilities

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* pin deps

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* bump JasonEtco/create-an-issue

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* bump versions in drop-downs

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* fix background mode scan with request.operation

Signed-off-by: Chip Zoller <chipzoller@gmail.com>

* Revert "bump versions in drop-downs"

This reverts commit 5fcea048dd.

* Revert "bump JasonEtco/create-an-issue"

This reverts commit f0d44c7aca.

Signed-off-by: Chip Zoller <chipzoller@gmail.com>
Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com>
This commit is contained in:
Chip Zoller 2022-10-13 12:34:49 -04:00 committed by GitHub
parent 56d90888e0
commit 3c70843fdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -34,6 +34,8 @@ annotations:
- kind: added
description: Support for failurePolicy setting in kyverno-policies helm chart
- kind: added
description: Add posibility to set validationFailureAction by Policy
description: Add possibility to set validationFailureAction by Policy
- kind: added
description: Added ability to get additional policies from restricted
- kind: fixed
description: Applied fix in preconditions for background mode

View file

@ -46,7 +46,7 @@ spec:
preconditions:
{{- if .all }}
all:
- key: "{{`{{ request.operation }}`}}"
- key: "{{`{{ request.operation || 'BACKGROUND' }}`}}"
operator: NotEquals
value: DELETE
{{- toYaml .all | nindent 8 }}
@ -57,7 +57,7 @@ spec:
{{- else }}
preconditions:
all:
- key: "{{`{{ request.operation }}`}}"
- key: "{{`{{ request.operation || 'BACKGROUND' }}`}}"
operator: NotEquals
value: DELETE
{{- end }}
@ -88,7 +88,7 @@ spec:
preconditions:
{{- if .all }}
all:
- key: "{{`{{ request.operation }}`}}"
- key: "{{`{{ request.operation || 'BACKGROUND' }}`}}"
operator: NotEquals
value: DELETE
{{- toYaml .all | nindent 8 }}
@ -99,7 +99,7 @@ spec:
{{- else }}
preconditions:
all:
- key: "{{`{{ request.operation }}`}}"
- key: "{{`{{ request.operation || 'BACKGROUND' }}`}}"
operator: NotEquals
value: DELETE
{{- end }}