[bitnami/kafka] bugfix: upgrade issue due to secret lookup (#32621)

This commit is contained in:
Juan Ariza Toledano
2025-03-26 17:13:20 +01:00
committed by GitHub
parent 66ba328a95
commit 31af2bd4dd
3 changed files with 8 additions and 3 deletions

View File

@@ -68,7 +68,8 @@ type: Opaque
data:
cluster-id: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-kraft" (include "common.names.fullname" .)) "key" "cluster-id" "providedValues" (list "clusterId") "length" 22 "context" $) }}
{{- range $i := until (int .Values.controller.replicaCount) }}
controller-{{ $i }}-id: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-kraft" (include "common.names.fullname" $)) "key" "controller-{{ $i }}-id" "providedValues" (list "") "length" 22 "context" $) }}
{{- $key := printf "controller-%d-id" $i }}
{{ $key }}: {{ include "common.secrets.passwords.manage" (dict "secret" (printf "%s-kraft" (include "common.names.fullname" $)) "key" $key "providedValues" (list "") "length" 22 "context" $) }}
{{- end }}
{{- end }}
{{- if .Values.serviceBindings.enabled }}