From 4ea366eef75bfd371fa5618da63eba491ff0df00 Mon Sep 17 00:00:00 2001
From: Matthias Loibl <mail@matthiasloibl.com>
Date: Wed, 16 Jun 2021 12:55:51 +0200
Subject: [PATCH] Fix name for blackbox-exporter PodSecurityPolicy

---
 .../kube-prometheus/addons/podsecuritypolicies.libsonnet    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet b/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet
index 838db3bf..61439b59 100644
--- a/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet
+++ b/jsonnet/kube-prometheus/addons/podsecuritypolicies.libsonnet
@@ -117,7 +117,11 @@ local restrictedPodSecurityPolicy = {
             },
           }
         else
-          {};
+          {
+            metadata+: {
+              name: 'blackbox-exporter-psp',
+            },
+          };
 
       restrictedPodSecurityPolicy + blackboxExporterPspPrivileged,
   },
-- 
GitLab