Skip to content

Commit

Permalink
set original disallow-empty-ingress-host to Audit
Browse files Browse the repository at this point in the history
Signed-off-by: Chandan-DK <[email protected]>
  • Loading branch information
Chandan-DK committed Mar 9, 2024
1 parent cc5a3da commit a448e2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ spec:
try:
- apply:
file: ../disallow-empty-ingress-host.yaml
- patch:
resource:
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: disallow-empty-ingress-host
spec:
validationFailureAction: Enforce
- assert:
file: policy-ready.yaml
- name: step-02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
in order to be valid. This policy ensures that there is a
hostname for each rule defined.
spec:
validationFailureAction: enforce
validationFailureAction: Audit
background: false
rules:
- name: disallow-empty-ingress-host
Expand Down

0 comments on commit a448e2e

Please sign in to comment.