This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch restore-missing-env
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-helm.git

commit 5fb644f38a6850b8c543b69197b9bdf299d2934d
Author: mrproliu <[email protected]>
AuthorDate: Thu Nov 6 20:42:04 2025 +0900

    Fix missing env in the restore init container
---
 chart/templates/cluster_data_statefulset.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/chart/templates/cluster_data_statefulset.yaml 
b/chart/templates/cluster_data_statefulset.yaml
index ecc7bde..9db3538 100644
--- a/chart/templates/cluster_data_statefulset.yaml
+++ b/chart/templates/cluster_data_statefulset.yaml
@@ -104,6 +104,11 @@ spec:
             - {{ $flag | quote }}
             {{- end }}
             {{- end }}
+          env:
+            - name: ORDINAL_NUMBER
+              valueFrom:
+                fieldRef:
+                  fieldPath: metadata.labels['apps.kubernetes.io/pod-index']
           {{- if $.Values.storage.data.enabled }}
           volumeMounts:
             {{- range $claim := $.Values.storage.data.persistentVolumeClaims }}

Reply via email to