Skip to content

Commit

Permalink
feat: support inner key of brokerconfig
Browse files Browse the repository at this point in the history
Signed-off-by: wangxye <[email protected]>
  • Loading branch information
wangxye authored and wangxye committed Oct 23, 2023
1 parent 5357877 commit 909c76f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rocketmq-k8s-helm/templates/broker/_brokerconfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ 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 }}
{{ $clusterName }}-{{ $name }}-{{ $index }}: |
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 }}
Expand Down
6 changes: 5 additions & 1 deletion rocketmq-k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
broker:
replicaCount: 1
image:
pullPolicy: IfNotPresent
pullPolicy: Always
repository: "automqinc/rocketmq_e2e"
tag: "5.1.3-alpine"

Expand Down Expand Up @@ -55,6 +55,10 @@ broker:

tolerations: [ ]

inner:
accessKey: "aa"
secretKey: "bb"

s3stream:
s3WALPath: "/tmp/s3rocketmq/wal"
s3Endpoint: "http://minio.hellocorp.test"
Expand Down

0 comments on commit 909c76f

Please sign in to comment.