-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubewarden-defaults): set
failurePolicy: Ignore
if mode == "mon…
…itor" (#553) Signed-off-by: Michael Malet <[email protected]>
- Loading branch information
Showing
8 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
suite: set failurePolicy based upon mode | ||
templates: | ||
- allow-privileged-escalation-policy.yaml | ||
- capabilities-policy.yaml | ||
- host-namespace-policy.yaml | ||
- host-path-policy.yaml | ||
- pod-privileged-policy.yaml | ||
- user-group-policy.yaml | ||
tests: | ||
- it: "should ignore on webhook failures if in monitor mode" | ||
set: | ||
recommendedPolicies.enabled: true | ||
recommendedPolicies.defaultPolicyMode: "monitor" | ||
asserts: | ||
- equal: | ||
path: spec.failurePolicy | ||
value: Ignore | ||
- it: "should reject on webhook failures if in protect mode" | ||
set: | ||
recommendedPolicies.enabled: true | ||
recommendedPolicies.defaultPolicyMode: "protect" | ||
asserts: | ||
- equal: | ||
path: spec.failurePolicy | ||
value: Fail |