From 909c76ff2df8742060d76469394d35d1a2412cd2 Mon Sep 17 00:00:00 2001 From: wangxye Date: Sun, 22 Oct 2023 17:24:39 +0800 Subject: [PATCH] feat: support inner key of brokerconfig Signed-off-by: wangxye --- rocketmq-k8s-helm/templates/broker/_brokerconfig.tpl | 3 +++ rocketmq-k8s-helm/values.yaml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rocketmq-k8s-helm/templates/broker/_brokerconfig.tpl b/rocketmq-k8s-helm/templates/broker/_brokerconfig.tpl index c642fbb..0a967a9 100644 --- a/rocketmq-k8s-helm/templates/broker/_brokerconfig.tpl +++ b/rocketmq-k8s-helm/templates/broker/_brokerconfig.tpl @@ -23,6 +23,7 @@ limitations under the License. {{- $config := .Values.broker.config }} {{- $s3stream := .Values.broker.s3stream }} {{- $bindAddress := .Values.broker.service }} +{{- $innerKey := .Values.broker.inner }} {{- $db := .Values.broker.db }} {{- $replicaCount := .Values.broker.replicaCount | int }} {{- range $index := until $replicaCount }} @@ -30,6 +31,8 @@ limitations under the License. name: {{ $clusterName }}-{{ $brokerNamePrefix }}-{{ $index }} instanceId: {{ $brokerNamePrefix }}-{{ $index }} bindAddress: "0.0.0.0:{{ $bindAddress.port }}" + innerAccessKey: {{ $innerKey.accessKey }} + innerSecretKey: {{ $innerKey.secretKey }} s3Stream: s3WALPath: {{ $s3stream.s3WALPath }} s3Endpoint: {{ $s3stream.s3Endpoint }} diff --git a/rocketmq-k8s-helm/values.yaml b/rocketmq-k8s-helm/values.yaml index 0d6266a..ea64e37 100644 --- a/rocketmq-k8s-helm/values.yaml +++ b/rocketmq-k8s-helm/values.yaml @@ -20,7 +20,7 @@ broker: replicaCount: 1 image: - pullPolicy: IfNotPresent + pullPolicy: Always repository: "automqinc/rocketmq_e2e" tag: "5.1.3-alpine" @@ -55,6 +55,10 @@ broker: tolerations: [ ] + inner: + accessKey: "aa" + secretKey: "bb" + s3stream: s3WALPath: "/tmp/s3rocketmq/wal" s3Endpoint: "http://minio.hellocorp.test"