[bitnami/kafka] Register targetPod in global context (#24391)

Signed-off-by: Andrés Bono <andresbono@vmware.com>
This commit is contained in:
Andrés Bono
2024-04-01 16:13:45 +02:00
committed by GitHub
parent c84a8c326a
commit 7c2aed44ad
4 changed files with 7 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ SPDX-License-Identifier: APACHE-2.0
{{- $replicaCount := .Values.broker.replicaCount | int }}
{{- range $i := until $replicaCount }}
{{- $targetPod := printf "%s-broker-%d" (printf "%s" $fullname) $i }}
{{- $_ := set $ "targetPod" $targetPod }}
apiVersion: v1
kind: Service
metadata: