Skip to content

Commit d5e8db3

Browse files
holyspectralvenkateshjayagopal
authored andcommitted
fix: NVSHAS-9662 fix inconsistent role bindings
Remove a few role bindings when internal.autoGenerateCert is disabled
1 parent 563a95d commit d5e8db3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/core/templates/rolebinding-least.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ subjects:
9898
userNames:
9999
- system:serviceaccount:{{ .Release.Namespace }}:controller
100100
{{- end }}
101-
{{- end }}
102101
---
103102
{{- if $oc3 }}
104103
apiVersion: authorization.openshift.io/v1
@@ -128,6 +127,7 @@ subjects:
128127
userNames:
129128
- system:serviceaccount:{{ .Release.Namespace }}:cert-upgrader
130129
{{- end }}
130+
{{- end }}
131131
---
132132
{{- if $oc3 }}
133133
apiVersion: authorization.openshift.io/v1

charts/core/templates/rolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ subjects:
110110
- kind: ServiceAccount
111111
name: {{ .Values.serviceAccount }}
112112
namespace: {{ .Release.Namespace }}
113-
{{- end }}
114113
---
115114
{{- if $oc3 }}
116115
apiVersion: authorization.openshift.io/v1
@@ -170,4 +169,5 @@ userNames:
170169
- system:serviceaccount:{{ .Release.Namespace }}:cert-upgrader
171170
{{- end }}
172171
{{- end }}
172+
{{- end }}
173173

0 commit comments

Comments
 (0)