mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 16:21:13 +00:00
PodSecurity: update webhook manifest to label namespace as restricted
This commit is contained in:
parent
4986780da3
commit
d92e0dbea6
@ -1,4 +1,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user