Skip to content

Commit

Permalink
Fix wrong log dir names
Browse files Browse the repository at this point in the history
  • Loading branch information
nysthee authored and gAmUssA committed Dec 19, 2018
1 parent 0bec2cf commit e808c14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions charts/cp-kafka/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ else use user-provided URL
{{- end -}}

{{/*
Create a variable containing a comma-sepparated list of all the log dirs.
Create a variable containing all the datadirs created.
*/}}

{{- define "cp-kafka.log.dirs" -}}
{{- range $k, $e := until (.Values.persistence.disksPerBroker|int) -}}
{{- if $k}}{{- printf ","}}{{end}}
{{- printf "/opt/kafka/data/logs-%d" $k -}}
{{- printf "/opt/kafka/data-%d" $k -}}
{{- end -}}
{{- end -}}
1 change: 0 additions & 1 deletion charts/cp-kafka/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ spec:
value: {{ .Values.heapOptions }}
- name: KAFKA_ZOOKEEPER_CONNECT
value: {{ include "cp-kafka.cp-zookeeper.service-name" . | quote }}
{{- end }}
{{- if not (hasKey .Values.configurationOverrides "log.dirs") }}
- name: KAFKA_LOG_DIRS
value: {{ include "cp-kafka.log.dirs" . | quote }}
Expand Down

0 comments on commit e808c14

Please sign in to comment.