Skip to content

Commit 8c38789

Browse files
authored
add labels to cs-operator clusterrolebinding (#2691)
Signed-off-by: Allen Li <liyuchen223@gmail.com>
1 parent e7bd9b1 commit 8c38789

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

helm-cluster-scoped/templates/cluster-rbac.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ metadata:
7878
name: ibm-common-service-operator-{{ .Values.global.operatorNamespace }}
7979
labels:
8080
component-id: {{ .Chart.Name }}
81+
{{- if .Values.cpfs.labels }}
82+
{{- with .Values.cpfs.labels }}
83+
{{- toYaml . | nindent 4 }}
84+
{{- end }}
85+
{{- end}}
86+
{{- if .Values.cpfs.clusterLabels }}
87+
{{- with .Values.cpfs.clusterLabels }}
88+
{{- toYaml . | nindent 4 }}
89+
{{- end }}
90+
{{- end}}
8191
roleRef:
8292
kind: ClusterRole
8393
apiGroup: rbac.authorization.k8s.io

0 commit comments

Comments
 (0)