Created
September 20, 2017 13:24
-
-
Save grampelberg/236986173ff21d5cf7ba7a063085b006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zookeeper connection string | |
{{- define "zookeepers" -}}{{ include "_zookeepers" . | trim | replace "\n\n" "," | nospace }}{{- end -}} | |
{{- define "_zookeepers" -}} | |
{{ $values := . }} | |
{{ range $i, $e := until (int .Values.zookeeper.replicaCount) }} | |
{{ template "zookeeperName" $values }}-{{ $i }}.{{ template "headlessZookeeper" $values }} | |
{{ end }} | |
{{- end -}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment