PodSecurity: update webhook manifest to label namespace as restricted

This commit is contained in:
Jordan Liggitt 2021-11-03 11:35:20 -04:00
parent 4986780da3
commit d92e0dbea6

View File

@ -1,4 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: pod-security-webhook
name: pod-security-webhook
labels:
# Even though the validating webhook excludes intercepting this namespace to avoid a circular dependency,
# the deployment pod spec is compatible with the restricted level, so mark the namespace as restricted anyway.
pod-security.kubernetes.io/enforce: restricted