Skip to content

Commit

Permalink
Enable pod security warnings for flux-system
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Gomes <[email protected]>
  • Loading branch information
Paulo Gomes committed Jan 20, 2022
1 parent 5d95a6e commit 6a0e8bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/install/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ apiVersion: v1
kind: Namespace
metadata:
name: flux-system
pod-security.kubernetes.io/warn: restricted
pod-security.kubernetes.io/warn-version: latest
3 changes: 3 additions & 0 deletions pkg/manifestgen/install/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a0e8bc

Please sign in to comment.