mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
* fix: return all the exceptions that match the incoming resource Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> * fix: modify log messages Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> --------- Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
36 lines
649 B
YAML
36 lines
649 B
YAML
apiVersion: kyverno.io/v2
|
|
kind: PolicyException
|
|
metadata:
|
|
name: exception-baseline
|
|
spec:
|
|
exceptions:
|
|
- policyName: psp-baseline
|
|
ruleNames:
|
|
- baseline
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
---
|
|
apiVersion: kyverno.io/v2
|
|
kind: PolicyException
|
|
metadata:
|
|
name: init-exception-baseline
|
|
spec:
|
|
exceptions:
|
|
- policyName: psp-baseline
|
|
ruleNames:
|
|
- baseline
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
podSecurity:
|
|
- controlName: Capabilities
|
|
images:
|
|
- 'busybox:latest'
|
|
restrictedField: spec.initContainers[*].securityContext.capabilities.add
|
|
values:
|
|
- SYS_TIME
|