Enable pod security warnings for flux-system

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
pull/2316/head
Paulo Gomes 3 years ago
parent 0a6d5d9267
commit f7853c4ddf
No known key found for this signature in database
GPG Key ID: 9995233870E99BEE

@ -2,3 +2,6 @@ apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: flux-system name: flux-system
labels:
pod-security.kubernetes.io/warn: restricted
pod-security.kubernetes.io/warn-version: latest

@ -165,6 +165,9 @@ apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: {{.Namespace}} name: {{.Namespace}}
labels:
pod-security.kubernetes.io/warn: restricted
pod-security.kubernetes.io/warn-version: latest
` `
func execTemplate(obj interface{}, tmpl, filename string) error { func execTemplate(obj interface{}, tmpl, filename string) error {

Loading…
Cancel
Save