From 301ba72ca938cfb6ed10c666301ea4c61b3bf64f Mon Sep 17 00:00:00 2001 From: Jason Witkowski Date: Fri, 3 Feb 2023 11:50:27 -0500 Subject: [PATCH] helm: Stop helm chart from failing if zkHosts is not set --- helm/druid/Chart.yaml | 2 +- helm/druid/templates/configmap.yaml | 2 +- helm/druid/values.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helm/druid/Chart.yaml b/helm/druid/Chart.yaml index b216f52be916..71ef36f49e1e 100644 --- a/helm/druid/Chart.yaml +++ b/helm/druid/Chart.yaml @@ -30,7 +30,7 @@ dependencies: version: 8.6.4 repository: https://charts.helm.sh/stable condition: postgresql.enabled -version: 0.3.2 +version: 0.3.3 home: https://druid.apache.org/ icon: https://druid.apache.org/img/favicon.png sources: diff --git a/helm/druid/templates/configmap.yaml b/helm/druid/templates/configmap.yaml index 85e6203c9ba7..ef8e67af4c7f 100644 --- a/helm/druid/templates/configmap.yaml +++ b/helm/druid/templates/configmap.yaml @@ -31,7 +31,7 @@ data: {{ toYaml .Values.configVars | indent 2 }} {{- if .Values.zookeeper.enabled }} druid_zk_service_host: {{ .Release.Name }}-zookeeper-headless:2181 -{{- else }} +{{- else if .Values.zkHosts }} druid_zk_service_host: {{ .Values.zkHosts }} {{- end }} {{- if .Values.mysql.enabled }} diff --git a/helm/druid/values.yaml b/helm/druid/values.yaml index 000cfbf61a58..7ad0b826721d 100644 --- a/helm/druid/values.yaml +++ b/helm/druid/values.yaml @@ -376,6 +376,7 @@ router: # Zookeeper: # ------------------------------------------------------------------------------ +# If using a zookeeper installed outside of this chart you must uncomment and set this line # zkHosts: druid-zookeeper-headless:2181 zookeeper: