mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-21 15:11:47 +00:00
Merge pull request #2316 from pjbgf/warn-pod-security
[security] Enable pod security warnings for flux-system
This commit is contained in:
commit
365d2d102d
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue