mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* feat add chainsaw tests for pod security and exceptions Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> * fix: enable ProcMountType in the kind config Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com> --------- Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
31 lines
663 B
YAML
31 lines
663 B
YAML
apiVersion: kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: psp-restricted-limited
|
|
annotations:
|
|
pod-policies.kyverno.io/autogen-controllers: none
|
|
spec:
|
|
background: true
|
|
validationFailureAction: Enforce
|
|
rules:
|
|
- name: restricted
|
|
match:
|
|
any:
|
|
- resources:
|
|
kinds:
|
|
- Pod
|
|
namespaces:
|
|
- default
|
|
validate:
|
|
podSecurity:
|
|
level: restricted
|
|
version: v1.29
|
|
exclude:
|
|
- controlName: Volume Types
|
|
- controlName: Seccomp
|
|
- controlName: Seccomp
|
|
images:
|
|
- '*'
|
|
- controlName: Capabilities
|
|
images:
|
|
- "*"
|