Skip to content

Commit

Permalink
[dev-v2.9] Fix typo in psp-clusterrole.yaml template.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpromislow committed Sep 24, 2024
1 parent c8d0e5c commit 3b3beb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
+++ charts/templates/psp-clusterrole.yaml
@@ -1,4 +1,4 @@
-{{- if and .Values.rbac.create .Values.rbac.pspEnabled (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
+{{- if and (or .Values.global.cattle.psp.enable (.Values.rbac.create .Values.rbac.pspEnabled)) (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
+{{- if and (or .Values.global.cattle.psp.enable (and .Values.rbac.create .Values.rbac.pspEnabled)) (.Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy") }}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:

0 comments on commit 3b3beb8

Please sign in to comment.