Skip to content

Commit

Permalink
Merge pull request confluentinc#229 from nixsticks/headlessfix
Browse files Browse the repository at this point in the history
Change template partial cp-zookeeper.service-name to cp-zookeeper.connect
  • Loading branch information
qshao-pivotal authored Feb 17, 2019
2 parents 332046e + 1792078 commit 4b05b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/cp-kafka-rest/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
*/}}
{{- define "cp-kafka-rest.cp-zookeeper.fullname" -}}
{{- $name := default "cp-zookeeper" (index .Values "cp-zookeeper" "nameOverride") -}}
{{- printf "%s-%s-headless" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Expand All @@ -49,7 +49,7 @@ else use user-provided URL
{{- printf "%s" (index .Values "cp-zookeeper" "url") }}
{{- else -}}
{{- $clientPort := default 2181 (index .Values "cp-zookeeper" "clientPort") | int -}}
{{- printf "%s:%d" (include "cp-kafka-rest.cp-zookeeper.fullname" .) $clientPort }}
{{- printf "%s-headless:%d" (include "cp-kafka-rest.cp-zookeeper.fullname" .) $clientPort }}
{{- end -}}
{{- end -}}

Expand Down

0 comments on commit 4b05b03

Please sign in to comment.