Skip to content

Commit

Permalink
create canary policy can be audit policy
Browse files Browse the repository at this point in the history
  • Loading branch information
asiyani committed Oct 21, 2024
1 parent 86d2b81 commit 824473d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions kyverno/policies/canary/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
This is the canary rule which detects canary resources in the cluster.
This is to alert on stopped or missing background scan report alerts.
spec:
validationFailureAction: Enforce
validationFailureAction: Audit
background: true
rules:
- name: detect-canary-configmap
Expand All @@ -19,13 +19,6 @@ spec:
- ConfigMap
names:
- kyverno-canary-resource
preconditions:
all:
- key: "{{request.operation || 'BACKGROUND'}}"
operator: AnyNotIn
value:
- CREATE
- DELETE
validate:
message: "Found kyverno canary configMap in the cluster"
deny: {}

0 comments on commit 824473d

Please sign in to comment.