UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Expand hostpath kyverno policies to include Persistent Volumes

Merged Tunde Oladipupo requested to merge kyerno-policies-5 into master
Files
5
@@ -394,6 +394,12 @@ policies:
{{- end }}
{{- end }}
# NOTE: This restricts the ability to have PVCs when using a local path provisioner storage class (i.e. k3d default).
# To override either disable this policy (not ideal) or add an allowed wildcard matching where local paths are provisioned.
# See `/docs/example_configs/policy-overrides-k3d.yaml` for an example of how to do this for k3d.
restrict-host-path-mount-pv:
validationFailureAction: audit
restrict-host-path-write:
validationFailureAction: enforce
{{- if .Values.twistlock.enabled }}
Loading