Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(druid): add podLabels values. #648

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 6 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 @@ -365,6 +368,8 @@ historical:
timeoutSeconds: 10
failureThreshold: 30
successThreshold: 1
podAnnotations: {}
podLabels: {}
serviceAccount:
# -- Create a service account for the coordinator
create: true
Expand Down Expand Up @@ -488,6 +493,7 @@ zookeeper:
image:
debug: true
podAnnotations: {}
podLabels: {}

gCloudStorage:
enabled: false
Expand Down