From 76c847070c0e13d9fc7eb880c2c61dfcef20dce1 Mon Sep 17 00:00:00 2001 From: Simon Belmas <22192134+simbelmas@users.noreply.github.com> Date: Wed, 26 Jun 2024 14:41:05 +0200 Subject: [PATCH] Move psa configuration labels to namespace instead of common labels. --- kustomization.yaml | 3 --- namespace.yaml | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kustomization.yaml b/kustomization.yaml index 11208e3..0ed609f 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -5,9 +5,6 @@ namespace: html-kube-tester commonLabels: app.kubernetes.io/instance: html-kube-tester app.kubernetes.io/part-of: html-kube-tester - pod-security.kubernetes.io/enforce: restricted - pod-security.kubernetes.io/audit: restricted - pod-security.kubernetes.io/warn: restricted configMapGenerator: - name: html-kube-tester-config diff --git a/namespace.yaml b/namespace.yaml index f568d27..9700133 100644 --- a/namespace.yaml +++ b/namespace.yaml @@ -1,4 +1,8 @@ apiVersion: v1 kind: Namespace metadata: - name: html-kube-tester \ No newline at end of file + name: html-kube-tester + labels: + pod-security.kubernetes.io/enforce: restricted + pod-security.kubernetes.io/audit: restricted + pod-security.kubernetes.io/warn: restricted \ No newline at end of file