@@ -8,11 +8,8 @@ apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
8
8
kind : ClusterRole
9
9
metadata :
10
10
name : {{ printf "%s:controller" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
11
- labels : {{- include "common.labels.standard" . | nindent 4 }}
11
+ labels : {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
12
12
app.kubernetes.io/component : controller
13
- {{- if .Values.commonLabels }}
14
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
15
- {{- end }}
16
13
{{- if .Values.commonAnnotations }}
17
14
annotations : {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
18
15
{{- end }}
@@ -93,11 +90,8 @@ kind: Role
93
90
metadata :
94
91
name : {{ printf "%s-controller" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
95
92
namespace : {{ include "common.names.namespace" . | quote }}
96
- labels : {{- include "common.labels.standard" . | nindent 4 }}
93
+ labels : {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
97
94
app.kubernetes.io/component : controller
98
- {{- if .Values.commonLabels }}
99
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
100
- {{- end }}
101
95
{{- if .Values.commonAnnotations }}
102
96
annotations : {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
103
97
{{- end }}
@@ -198,11 +192,8 @@ apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
198
192
kind : ClusterRoleBinding
199
193
metadata :
200
194
name : {{ printf "%s:controller" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
201
- labels : {{- include "common.labels.standard" . | nindent 4 }}
195
+ labels : {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
202
196
app.kubernetes.io/component : controller
203
- {{- if .Values.commonLabels }}
204
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
205
- {{- end }}
206
197
{{- if .Values.commonAnnotations }}
207
198
annotations : {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
208
199
{{- end }}
@@ -220,11 +211,8 @@ kind: RoleBinding
220
211
metadata :
221
212
name : {{ printf "%s-controller" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
222
213
namespace : {{ include "common.names.namespace" . | quote }}
223
- labels : {{- include "common.labels.standard" . | nindent 4 }}
214
+ labels : {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
224
215
app.kubernetes.io/component : controller
225
- {{- if .Values.commonLabels }}
226
- {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
227
- {{- end }}
228
216
{{- if .Values.commonAnnotations }}
229
217
annotations : {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
230
218
{{- end }}
0 commit comments