Skip to content

Commit

Permalink
Merge pull request #2316 from pjbgf/warn-pod-security
Browse files Browse the repository at this point in the history
[security] Enable pod security warnings for flux-system
  • Loading branch information
stefanprodan authored Jan 21, 2022
2 parents 0a6d5d9 + f7853c4 commit 365d2d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/install/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 365d2d1

Please sign in to comment.