fixing error in node-exporter

pull/2285/head
Geet Samra 2022-12-22 15:48:35 -08:00
parent 65d0e400ab
commit ebd92ddea0
1 changed files with 0 additions and 15 deletions

View File

@ -1,15 +0,0 @@
--- charts-original/templates/psp-clusterrole.yaml
+++ charts/templates/psp-clusterrole.yaml
@@ -6,10 +6,12 @@
name: psp-{{ template "prometheus-node-exporter.fullname" . }}
labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }}
rules:
+{{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicies" }}
- apiGroups: ['extensions']
resources: ['podsecuritypolicies']
verbs: ['use']
resourceNames:
+{{- end }}
- {{ template "prometheus-node-exporter.fullname" . }}
{{- end }}
{{- end }}