Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set cluster mode in redis when given in properties file. #96

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading