This is an automated email from the ASF dual-hosted git repository. hanahmily pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb-helm.git
The following commit(s) were added to refs/heads/master by this push: new 425e57a Fix lifecycle agent failing connect to etcd (#30) 425e57a is described below commit 425e57a9464371926de3a728e39230a0db9e7982 Author: Gao Hongtao <hanahm...@gmail.com> AuthorDate: Thu Jun 12 22:19:03 2025 +0800 Fix lifecycle agent failing connect to etcd (#30) * Fix lifecycle agent failing connect to etcd Signed-off-by: Gao Hongtao <hanahm...@gmail.com> --------- Signed-off-by: Gao Hongtao <hanahm...@gmail.com> --- chart/templates/cluster_data_statefulset.yaml | 31 ++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/chart/templates/cluster_data_statefulset.yaml b/chart/templates/cluster_data_statefulset.yaml index 6b67364..6cc7e9a 100644 --- a/chart/templates/cluster_data_statefulset.yaml +++ b/chart/templates/cluster_data_statefulset.yaml @@ -99,8 +99,8 @@ spec: - name: {{ $env.name }} value: {{ $env.value }} {{- end }} - - name: BYDB_DATA_NODE_ROLE - value: {{ $roleName }} + - name: BYDB_NODE_LABELS + value: "type={{ $roleName }}" {{- if $roleConfig.tls}} {{- if $roleConfig.tls.grpcSecretName }} - name: BYDB_TLS @@ -117,7 +117,7 @@ spec: - name: BYDB_ETCD_USERNAME value: "root" - name: BYDB_ETCD_PASSWORD - value: {{ $.Values.etcd.auth.rbac.rootPassword }} + value: "{{ $.Values.etcd.auth.rbac.rootPassword }}" {{- end }} {{- if $.Values.etcd.auth.client.secureTransport }} - name: BYDB_ETCD_TLS_CA_FILE @@ -275,6 +275,31 @@ spec: - name: lifecycle image: {{ $.Values.image.repository }}:{{ required "banyandb.image.tag is required" $.Values.image.tag }}-slim imagePullPolicy: {{ $.Values.image.pullPolicy }} + env: + - name: BYDB_NODE_LABELS + value: "type={{ $roleName }}" + {{- if and $.Values.etcd.auth.rbac.create (not $.Values.etcd.auth.rbac.allowNoneAuthentication) }} + - name: BYDB_ETCD_USERNAME + value: "root" + - name: BYDB_ETCD_PASSWORD + value: "{{ $.Values.etcd.auth.rbac.rootPassword }}" + {{- end }} + {{- if $.Values.etcd.auth.client.secureTransport }} + - name: BYDB_ETCD_TLS_CA_FILE + value: "/etc/tls/{{ $roleConfig.tls.etcdSecretName }}/ca.crt" + {{- end }} + {{- if $.Values.etcd.auth.client.enableAuthentication }} + - name: BYDB_ETCD_TLS_CERT_FILE + value: "/etc/tls/{{ $roleConfig.tls.etcdSecretName }}/tls.crt" + - name: BYDB_ETCD_TLS_KEY_FILE + value: "/etc/tls/{{ $roleConfig.tls.etcdSecretName }}/tls.key" + {{- end }} + {{- if and (not $.Values.etcd.enabled) $.Values.cluster.etcdEndpoints }} + - name: BYDB_ETCD_ENDPOINTS + value: "{{- $.Values.cluster.etcdEndpoints | join "," -}}" + {{- else }} + {{- include "banyandb.etcdEndpoints" $ | nindent 12 }} + {{- end }} command: - "/lifecycle" - "--schedule={{ $roleConfig.lifecycleSidecar.schedule }}"