helm: Stop helm chart from failing if zkHosts is not set#13746
Conversation
| {{- if .Values.zookeeper.enabled }} | ||
| druid_zk_service_host: {{ .Release.Name }}-zookeeper-headless:2181 | ||
| {{- else }} | ||
| {{- else .Values.zkHosts }} |
There was a problem hiding this comment.
Pretty sure this should be:
| {{- else .Values.zkHosts }} | |
| {{- else if .Values.zkHosts }} |
There was a problem hiding this comment.
Ugh, yes I thought I had that. Thank you for catching. Will fix now.
719aff7 to
92fb8d8
Compare
|
@jwitko - can you pull the changes from the master branch? That might fix the build failures. |
92fb8d8 to
301ba72
Compare
|
|
@jwitko Thanks, Going forward please avoid rebasing and force pushing for commits after submitting the PR, since this makes it harder for the reviewers to see what has changed between commits. |
sure no problem. what is preferred? |
Yes |
|
Thank you @jwitko for your contribution. |
Fixes #13745
Description
If a user deploying via the Apache Druid helm chart is while using
druid-kubernetes-extensionsthen there is no need to set a zookeeper host however the helm chart will fail if the user does not.This change will remove the requirement for setting a zookeeper host and adds a comment to the values file to help helm chart consumers understand.
Alternatives
An alternative design could have been to look for the druid config settings required in the documentation and base the conditional off of those but since they can be set at a per-process or global config level I thought it better to keep it simple.
Release note
Fixed: Helm chart no longer requires a ZooKeeper host be set for users using
druid-kubernetes-extensionsThis PR has: