1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Enable pod security warnings for flux-system

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
This commit is contained in:
Paulo Gomes
2022-01-20 13:30:33 +00:00
parent 0a6d5d9267
commit f7853c4ddf
2 changed files with 6 additions and 0 deletions

View File

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

View File

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