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

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

commit c11d56908ca121632bdcbd997af9d6f046bf9dc0
Author: mrproliu <[email protected]>
AuthorDate: Fri Mar 13 17:57:43 2026 +0800

    Support schema server only running on the hot data nodes
---
 chart/templates/_helpers.tpl                        |  2 ++
 chart/templates/cluster_data_statefulset.yaml       |  8 ++++++++
 chart/values.yaml                                   | 20 +++++++++++++++++++-
 test/e2e/env                                        |  2 +-
 test/e2e/values.dns-cluster-state.yaml              |  4 ++--
 test/e2e/values.dns-node-native-schema-cluster.yaml |  4 ++--
 6 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl
index 5267ddc..b05b512 100644
--- a/chart/templates/_helpers.tpl
+++ b/chart/templates/_helpers.tpl
@@ -147,6 +147,8 @@ Includes: repair cron, schema server parameters, schema 
server TLS
 {{- define "banyandb.schemaStoragePropertyServerEnv" -}}
 {{- $schemaMode := (default dict .Values.cluster.schemaStorage).mode | default 
"property" }}
 {{- if eq $schemaMode "property" }}
+- name: BYDB_HAS_META_ROLE
+  value: "true"
 {{- $property := ((default dict .Values.cluster.schemaStorage).property) | 
default dict }}
 {{- if $property.serverRepairCron }}
 - name: BYDB_SCHEMA_PROPERTY_REPAIR_TRIGGER_CRON
diff --git a/chart/templates/cluster_data_statefulset.yaml 
b/chart/templates/cluster_data_statefulset.yaml
index 60411c8..dd9cc6f 100644
--- a/chart/templates/cluster_data_statefulset.yaml
+++ b/chart/templates/cluster_data_statefulset.yaml
@@ -175,7 +175,15 @@ spec:
             {{- end }}
             {{- end }}
             {{- include "banyandb.schemaStorageEnv" $ | nindent 12 }}
+            {{- if eq $roleName "hot" }}
             {{- include "banyandb.schemaStoragePropertyServerEnv" $ | nindent 
12 }}
+            {{- else }}
+            {{- $schemaMode := (default dict 
$.Values.cluster.schemaStorage).mode | default "property" }}
+            {{- if eq $schemaMode "property" }}
+            - name: BYDB_HAS_META_ROLE
+              value: "false"
+            {{- end }}
+            {{- end }}
             {{- include "banyandb.schemaStoragePropertyClientEnv" $ | nindent 
12 }}
             {{- include "banyandb.etcdEnv" $ | nindent 12 }}
             {{- include "banyandb.nodeDiscoveryEnv" (dict "root" $) | nindent 
12 }}
diff --git a/chart/values.yaml b/chart/values.yaml
index 013e766..e23511c 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -1228,6 +1228,24 @@ storage:
       storageClass: null
       ## @param storage.data.persistentVolumeClaims[3].volumeMode Volume mode 
for the PVC
       volumeMode: Filesystem
+    ## @param storage.data.persistentVolumeClaims[4].mountTargets Mount 
targets for the PVC
+    - mountTargets: [ "schema-property" ]
+      ## @param storage.data.persistentVolumeClaims[4].nodeRole Node role this 
PVC is bound to
+      ##
+      nodeRole: hot
+      ## @param storage.data.persistentVolumeClaims[4].existingClaimName 
Existing PVC name (if any)
+      existingClaimName: null
+      ## @param storage.data.persistentVolumeClaims[4].claimName Name of the 
PVC
+      claimName: hot-schema-property-data
+      ## @param storage.data.persistentVolumeClaims[4].size Size of the PVC
+      size: 5Gi
+      ## @param storage.data.persistentVolumeClaims[4].accessModes Access 
modes for the PVC
+      accessModes:
+      - ReadWriteOnce
+      ## @param storage.data.persistentVolumeClaims[4].storageClass Storage 
class for the PVC
+      storageClass: null
+      ## @param storage.data.persistentVolumeClaims[4].volumeMode Volume mode 
for the PVC
+      volumeMode: Filesystem
 
   ## Liaison storage configuration
   ##
@@ -1264,7 +1282,7 @@ storage:
     persistentVolumeClaims:
     ## @param storage.standalone.persistentVolumeClaims[0].mountTargets Mount 
targets for the PVC
     ##
-    - mountTargets: [ "measure", "stream", "metadata", "property", "trace" ]
+    - mountTargets: [ "measure", "stream", "metadata", "property", "trace", 
"schema-property" ]
       ## @param storage.standalone.persistentVolumeClaims[0].claimName Name of 
the PVC
       claimName: standalone-data
       ## @param storage.standalone.persistentVolumeClaims[0].size Size of the 
PVC
diff --git a/test/e2e/env b/test/e2e/env
index 102a20d..8b7a218 100644
--- a/test/e2e/env
+++ b/test/e2e/env
@@ -22,7 +22,7 @@ 
SW_AGENT_CLIENT_JS_COMMIT=af0565a67d382b683c1dbd94c379b7080db61449
 SW_AGENT_CLIENT_JS_TEST_COMMIT=4f1eb1dcdbde3ec4a38534bf01dded4ab5d2f016
 SW_KUBERNETES_COMMIT_SHA=6fe5e6f0d3b7686c6be0457733e825ee68cb9b35
 SW_ROVER_COMMIT=79292fe07f17f98f486e0c4471213e1961fb2d1d
-SW_BANYANDB_COMMIT=67cb3eaa71d1b2ba9a56dddc17050fd69da78593
+SW_BANYANDB_COMMIT=c27121f43c76b3b31470e2846f68958884ef91d6
 SW_AGENT_PHP_COMMIT=d1114e7be5d89881eec76e5b56e69ff844691e35
 SW_PREDICTOR_COMMIT=54a0197654a3781a6f73ce35146c712af297c994
 
diff --git a/test/e2e/values.dns-cluster-state.yaml 
b/test/e2e/values.dns-cluster-state.yaml
index bd0d37e..c6bfc76 100644
--- a/test/e2e/values.dns-cluster-state.yaml
+++ b/test/e2e/values.dns-cluster-state.yaml
@@ -45,7 +45,7 @@ storage:
   data:
     enabled: true
     persistentVolumeClaims:
-    - mountTargets: [ "measure", "stream", "property", "trace" ]
+    - mountTargets: [ "measure", "stream", "property", "trace", 
"schema-property" ]
       nodeRole: hot
       existingClaimName: null
       claimName: data
@@ -76,7 +76,7 @@ storage:
   standalone:
     enabled: false
     persistentVolumeClaims:
-    - mountTargets: [ "measure", "stream", "property", "trace" ]
+    - mountTargets: [ "measure", "stream", "property", "trace", 
"schema-property" ]
       claimName: standalone-data
       size: 200Gi
       accessModes:
diff --git a/test/e2e/values.dns-node-native-schema-cluster.yaml 
b/test/e2e/values.dns-node-native-schema-cluster.yaml
index 6e4d404..e07ddb3 100644
--- a/test/e2e/values.dns-node-native-schema-cluster.yaml
+++ b/test/e2e/values.dns-node-native-schema-cluster.yaml
@@ -40,7 +40,7 @@ storage:
   data:
     enabled: true
     persistentVolumeClaims:
-    - mountTargets: [ "measure", "stream", "property", "trace" ]
+    - mountTargets: [ "measure", "stream", "property", "trace", 
"schema-property" ]
       nodeRole: hot
       existingClaimName: null
       claimName: data
@@ -62,7 +62,7 @@ storage:
   standalone:
     enabled: false
     persistentVolumeClaims:
-    - mountTargets: [ "measure", "stream", "property", "trace" ]
+    - mountTargets: [ "measure", "stream", "property", "trace", 
"schema-property" ]
       claimName: standalone-data
       size: 200Gi
       accessModes:

Reply via email to