File tree 2 files changed +24
-20
lines changed
2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -54,21 +54,40 @@ Example:
54
54
` ` ` yaml
55
55
rules:
56
56
- preconditions:
57
+ any: | all:
58
+ - key:
59
+ operator:
60
+ value:
57
61
` ` `
58
62
59
- XXX preconditions
63
+ Preconditions are OR'ed / AND'ed when using `any` / `all`
64
+
65
+ ` key` supports JMESPath expressions [](https://kyverno.io/docs/writing-policies/jmespath/)
66
+
67
+ Operators [](https://kyverno.io/docs/writing-policies/preconditions/#operators)
60
68
61
69
---
62
70
63
71
# # Validate / Mutate
64
72
65
- XXX Mutation before validation
73
+ Many examples/demos on the following slides
66
74
67
75
---
68
76
69
77
# # ClusterPolicy
70
78
71
- validationFailureActionOverrides
79
+ Cluster-wide policies are identical to namespaced policies
72
80
73
- .action
74
- .namespaces
81
+ One additional field `validationFailureActionOverrides`
82
+
83
+ Modify action (`Enforce` or `Audit`) for a list of namespaces :
84
+
85
+ ` ` ` yaml
86
+ spec:
87
+ validationFailureActionOverrides:
88
+ action: Audit
89
+ namespaces:
90
+ - kube-system
91
+ - kube-public
92
+ rules:
93
+ ` ` `
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments