[bitnami/kafka] Fix Kafka log/logs dir config (#20476)

This commit is contained in:
Juan Ariza Toledano
2023-12-20 12:24:25 +01:00
committed by GitHub
parent 3912649deb
commit a36243d9d3
6 changed files with 11 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ file:
{{ .Vars.controller.logPersistence.mountPath }}:
exists: true
filetype: directory
mode: "2777"
mode: "2775"
owner: root
/opt/bitnami/kafka/config/server.properties:
exists: true

View File

@@ -26,6 +26,7 @@ service:
interbroker: 19094
controller:
logPersistence:
enabled: true
mountPath: /opt/bitnami/kafka/logs
persistence:
mountPath: /bitnami/kafka

View File

@@ -42,4 +42,4 @@ maintainers:
name: kafka
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/kafka
version: 26.6.0
version: 26.6.1

View File

@@ -598,7 +598,6 @@ Returns the controller quorum voters based on the number of controller-eligible
Section of the server.properties configmap shared by both controller-eligible and broker nodes
*/}}
{{- define "kafka.commonConfig" -}}
log.dir={{ printf "%s/data" .Values.controller.persistence.mountPath }}
{{- if or (include "kafka.saslEnabled" .) }}
sasl.enabled.mechanisms={{ upper .Values.sasl.enabledMechanisms }}
{{- end }}

View File

@@ -40,6 +40,10 @@ data:
inter.broker.protocol.version={{ default (regexFind "^[0-9].[0-9]+" .Chart.AppVersion) .Values.interBrokerProtocolVersion }}
{{- end }}
{{- end }}
# Kafka data logs directory
log.dir={{ printf "%s/data" .Values.broker.persistence.mountPath }}
# Kafka application logs directory
logs.dir={{ .Values.broker.logPersistence.mountPath }}
{{- include "kafka.commonConfig" . | nindent 4 }}
{{- include "common.tplvalues.render" ( dict "value" .Values.extraConfig "context" $ ) | nindent 4 }}
{{- include "common.tplvalues.render" ( dict "value" .Values.broker.extraConfig "context" $ ) | nindent 4 }}

View File

@@ -39,6 +39,10 @@ data:
inter.broker.protocol.version={{ default (regexFind "^[0-9].[0-9]+" .Chart.AppVersion) .Values.interBrokerProtocolVersion }}
{{- include "kafka.zookeeperConfig" . | nindent 4 }}
{{- end }}
# Kafka data logs directory
log.dir={{ printf "%s/data" .Values.controller.persistence.mountPath }}
# Kafka application logs directory
logs.dir={{ .Values.controller.logPersistence.mountPath }}
{{- include "kafka.commonConfig" . | nindent 4 }}
{{- include "common.tplvalues.render" ( dict "value" .Values.extraConfig "context" $ ) | nindent 4 }}
{{- include "common.tplvalues.render" ( dict "value" .Values.controller.extraConfig "context" $ ) | nindent 4 }}