Skip to content

Commit

Permalink
Add option to set pod labels to helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
swoehrl-mw committed Feb 13, 2024
1 parent efbc600 commit 895b147
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions helm/hybrid-cloud-kafka-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
{{- end }}
labels:
{{- include "operator.selectorLabels" . | nindent 8 }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
7 changes: 6 additions & 1 deletion helm/hybrid-cloud-kafka-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ serviceAccount:
annotations: {}
# The name of the service account to use.
name: null
# This is required if the operator should install rabbitmq instaces, can be disabled if you only use the Azure ServiceBus backend
# This is required if the operator should install strimzi instances, can be disabled if you only use the Azure Event Hub backend
clusterAdmin: true

# Operator config.yaml
Expand All @@ -38,8 +38,13 @@ volumes: []
# List of volume mounts for the operator pod
volumeMounts: []


# Extra annotations to add to the operator pods
podAnnotations: {}

# Extra labels to add to the operator pods
podLabels: {}

podSecurityContext: {}

securityContext: {}
Expand Down

0 comments on commit 895b147

Please sign in to comment.