Skip to content
Snippets Groups Projects
Unverified Commit 365d2d10 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #2316 from pjbgf/warn-pod-security

[security] Enable pod security warnings for flux-system
parents 0a6d5d92 f7853c4d
No related branches found
No related tags found
No related merge requests found
...@@ -2,3 +2,6 @@ apiVersion: v1 ...@@ -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 ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment