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 13f8cb5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
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 @@ -18,4 +18,4 @@ readme: |
annotations:
kyverno/category: "Best Practices"
kyverno/subject: "Ingress"
digest: f9e70cf095e2d69a9586d7b8071975006e76aa715e5c978d37761c03ac6fc7fd
digest: dc6573e0a73eeb6e698fff33c86c2ec05af93d470f13a92e9af6a1cac6538721
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 13f8cb5

Please sign in to comment.