Fix system-log Kafka Vault template newlines

This commit is contained in:
Kochetkov S 2026-04-24 14:46:29 +03:00
parent a4f1949193
commit 722fe996d6

View File

@ -39,8 +39,8 @@ spec:
KAFKA_USERNAME={{ index .Data.data "username" }}
KAFKA_PASSWORD={{ index .Data.data "password" }}
KAFKA_BROKERS={{ index .Data.data.auth "bootstrap_servers" }}
{{- $topics := index .Data.data "topics" -}}
KAFKA_TOPIC={{- if gt (len $topics) 0 -}}{{ index (index $topics 0) "name" }}{{- else -}}system-log.events{{- end -}}
{{ $topics := index .Data.data "topics" }}
KAFKA_TOPIC={{ if gt (len $topics) 0 }}{{ index (index $topics 0) "name" }}{{ else }}system-log.events{{ end }}
{{- end -}}
spec:
serviceAccountName: system-log-vault