Skip to content

Commit

Permalink
feat: add role master or backup (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 authored Jul 22, 2024
1 parent 4a08221 commit 4429564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/rbdcomponent_helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ items:
{{- end }}
{{- if .Values.Component.rbd_worker.env }}
env:
- key: CLUSTER_STATUS
value: {{ .Values.Cluster.role }}
{{- range $key,$value := .Values.Component.rbd_worker.env }}
- name: {{ $key }}
value: "{{ $value }}"
Expand Down
4 changes: 3 additions & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ IAM:
# Rainbondcluster install Configuration
#############################################
Cluster:
# role master or backup
role: master

imagePullSecrets: ""

# Enable cluster environment detectio
Expand Down Expand Up @@ -152,7 +155,6 @@ Cluster:
# Rainbond Component Configuration
############################################
Component:

region_all:
enable: true

Expand Down

0 comments on commit 4429564

Please sign in to comment.