Skip to content

Commit 92a9381

Browse files
committed
Final slides for 20230510
1 parent 46f20c6 commit 92a9381

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

120_kubernetes/kyverno/writing_policies.md

+24-5
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,40 @@ Example:
5454
```yaml
5555
rules:
5656
- preconditions:
57+
any: | all:
58+
- key:
59+
operator:
60+
value:
5761
```
5862

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)
6068

6169
---
6270

6371
## Validate / Mutate
6472

65-
XXX Mutation before validation
73+
Many examples/demos on the following slides
6674

6775
---
6876

6977
## ClusterPolicy
7078

71-
validationFailureActionOverrides
79+
Cluster-wide policies are identical to namespaced policies
7280

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+
```

2023-05-10_heise-Webinar-KubernetesPolicies.md

-15
This file was deleted.

0 commit comments

Comments
 (0)