File tree Expand file tree Collapse file tree 5 files changed +16
-2
lines changed
deploy/helm/kafka-operator Expand file tree Collapse file tree 5 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ All notable changes to this project will be documented in this file.
77### Added
88
99- Various documentation of the CRD ([ #645 ] ).
10+ - Helm: support labels in values.yaml ([ #657 ] ).
1011
1112[ #645 ] : https://github.com/stackabletech/kafka-operator/pull/645
13+ [ #657 ] : https://github.com/stackabletech/kafka-operator/pull/657
1214
1315## [ 23.11.0] - 2023-11-24
1416
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ Selector labels
5555{ {- define " operator.selectorLabels" -} }
5656app.kubernetes.io/name: { { include " operator.appname" . } }
5757app.kubernetes.io/instance: { { .Release.Name } }
58+ { {- with .Values.labels } }
59+ { { toYaml . } }
60+ { {- end } }
5861{ {- end } }
5962
6063{ {/*
Original file line number Diff line number Diff line change 2323 labels :
2424 {{- include "operator.selectorLabels" . | nindent 8 }}
2525 spec :
26- {{- with .Values.imagePullSecrets }}
26+ {{- with .Values.image.pullSecrets }}
2727 imagePullSecrets :
2828 {{- toYaml . | nindent 8 }}
2929 {{- end }}
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
33kind : ClusterRole
44metadata :
55 name : {{ include "operator.fullname" . }}-clusterrole
6+ labels :
7+ {{- include "operator.labels" . | nindent 4 }}
68rules :
79 - apiGroups :
810 - " "
@@ -126,6 +128,8 @@ apiVersion: security.openshift.io/v1
126128kind : SecurityContextConstraints
127129metadata :
128130 name : kafka-scc
131+ labels :
132+ {{- include "operator.labels" . | nindent 4 }}
129133 annotations :
130134 kubernetes.io/description : |-
131135 This resource is derived from hostmount-anyuid. It provides all the features of the
@@ -169,6 +173,8 @@ apiVersion: rbac.authorization.k8s.io/v1
169173kind : ClusterRole
170174metadata :
171175 name : {{ include "operator.name" . }}-clusterrole
176+ labels :
177+ {{- include "operator.labels" . | nindent 4 }}
172178rules :
173179 - apiGroups :
174180 - " "
Original file line number Diff line number Diff line change 33image :
44 repository : docker.stackable.tech/stackable/kafka-operator
55 pullPolicy : IfNotPresent
6+ pullSecrets : []
67
7- imagePullSecrets : []
88nameOverride : " "
99fullnameOverride : " "
1010
@@ -19,6 +19,9 @@ serviceAccount:
1919
2020podAnnotations : {}
2121
22+ # Provide additional labels which get attached to all deployed resources
23+ labels : {}
24+
2225podSecurityContext : {}
2326 # fsGroup: 2000
2427
You can’t perform that action at this time.
0 commit comments