Skip to content

Commit

Permalink
Merge pull request #97 from orkes-io/redis_cluster_fix
Browse files Browse the repository at this point in the history
Set cluster mode config
  • Loading branch information
v1r3n authored Nov 10, 2023
2 parents 60e77c6 + e76416a commit 4f09596
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/orkes-conductor/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- $securityEnabled := eq (toString .Values.security.enabled) "true" -}}
{{- $clusterMode := eq (toString .Values.redis.clusterMode) "true" -}}
{{- if $securityEnabled -}}
{{- $validation := .Values.security.defaultUserEmail | required "security.defaultUserEmail is required." -}}
{{- $validation := .Values.security.defaultUserName | required "security.defaultUserName is required." -}}
Expand Down Expand Up @@ -98,6 +99,12 @@ spec:
secretKeyRef:
name: orkesdeploymentsecrets
key: redisPassword
{{- if $clusterMode }}
- name: conductor.db.type
value: redis_cluster
- name: conductor.queue.type
value: redis_cluster
{{- end }}
#### Postgres ####
- name: spring.datasource.url
value: {{ .Values.postgres.url | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/orkes-conductor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ redis:
host:
password:
dbIndex: 0
clusterMode: false

postgres:
username:
Expand Down

0 comments on commit 4f09596

Please sign in to comment.