Skip to content

Commit

Permalink
feat(druid): add podLabels values.
Browse files Browse the repository at this point in the history
  • Loading branch information
desaintmartin committed Feb 3, 2025
1 parent a102773 commit a758f6b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/druid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
description: Apache Druid is a high performance real-time analytics database.
name: druid
type: application
version: 1.19.2
version: 1.20.0
appVersion: 28.0.1
home: https://druid.apache.org/
icon: https://druid.apache.org/img/favicon.png
Expand Down
3 changes: 3 additions & 0 deletions charts/druid/templates/broker/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
labels:
{{- include "druid.common-labels" . | nindent 8 }}
app.kubernetes.io/component: {{ .Values.broker.name }}
{{- with .Values.broker.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
annotations:
druid.k8s.enablePatching: "true"
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
Expand Down
3 changes: 3 additions & 0 deletions charts/druid/templates/coordinator/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
labels:
{{- include "druid.common-labels" . | nindent 8 }}
app.kubernetes.io/component: {{ .Values.coordinator.name }}
{{- with .Values.coordinator.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
annotations:
druid.k8s.enablePatching: "true"
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
Expand Down
3 changes: 3 additions & 0 deletions charts/druid/templates/historical/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
{{- include "druid.common-labels" $ | nindent 8 }}
app.kubernetes.io/part-of: historical
app.kubernetes.io/component: historical-{{ $tierName }}
{{- with $historicalDefaults.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
druid.k8s.enablePatching: "true"
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
Expand Down
3 changes: 3 additions & 0 deletions charts/druid/templates/indexer/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
{{- include "druid.common-labels" $ | nindent 8 }}
app.kubernetes.io/part-of: indexer
app.kubernetes.io/component: indexer-{{ $categoryName }}
{{- with $categoryValue.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
druid.k8s.enablePatching: "true"
# This restarts all indexers for now as we use the same file
Expand Down
3 changes: 3 additions & 0 deletions charts/druid/templates/postgresql-s3-backup/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
labels:
{{- include "druid.common-labels" . | nindent 12 }}
app.kubernetes.io/component: {{ .Values.postgresql.backup.s3.cronJob.name }}
{{- with .Values.postgresql.backup.podLabels }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.postgresql.backup.podAnnotations }}
annotations:
{{- toYaml . | nindent 12 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/druid/templates/router/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
{{- include "druid.common-labels" . | nindent 8 }}
app.kubernetes.io/component: {{ .Values.router.name }}
druid.k8s.enablePatching: "true"
{{- with .Values.router.podLabels }}
{{ toYaml . | nindent 8 }}
{{- end }}
annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") $ | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") $ | sha256sum }}
Expand Down
4 changes: 4 additions & 0 deletions charts/druid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ router:
affinity: {}
annotations: {}
podAnnotations: {}
podLabels: {}
podDisruptionBudget: {}
envVars:
druid_router_managementProxy_enabled: "true"
Expand Down Expand Up @@ -231,6 +232,7 @@ broker:
affinity: {}
annotations: {}
podAnnotations: {}
podLabels: {}
podDisruptionBudget: {}
envVars: {}
secretEnvVars: {}
Expand Down Expand Up @@ -288,6 +290,7 @@ coordinator:
affinity: {}
annotations: {}
podAnnotations: {}
podLabels: {}
podDisruptionBudget: {}
envVars: {}
secretEnvVars: {}
Expand Down Expand Up @@ -488,6 +491,7 @@ zookeeper:
image:
debug: true
podAnnotations: {}
podLabels: {}

gCloudStorage:
enabled: false
Expand Down

0 comments on commit a758f6b

Please sign in to comment.