Skip to content

Commit

Permalink
explicit option to set CENTRIFUGO_REDIS_USER secret env var (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuxi authored Apr 1, 2024
1 parent 35be9a4 commit bddc91c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/centrifugo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
name: centrifugo
description: Centrifugo is a scalable real-time messaging server in language-agnostic way
version: 11.6.0
version: 11.6.1
appVersion: 5.2.2
home: https://centrifugal.dev
icon: https://centrifugal.dev/img/favicon.png
Expand Down
6 changes: 6 additions & 0 deletions charts/centrifugo/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ spec:
name: {{ include "centrifugo.secretName" . }}
key: redisAddress
optional: true
- name: CENTRIFUGO_REDIS_USER
valueFrom:
secretKeyRef:
name: {{ include "centrifugo.secretName" . }}
key: redisUser
optional: true
- name: CENTRIFUGO_REDIS_PASSWORD
valueFrom:
secretKeyRef:
Expand Down
3 changes: 3 additions & 0 deletions charts/centrifugo/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ data:
{{- if .Values.secrets.redisAddress }}
redisAddress: {{ .Values.secrets.redisAddress | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.redisUser }}
redisUser: {{ .Values.secrets.redisUser | b64enc | quote }}
{{- end }}
{{- if .Values.secrets.redisPassword }}
redisPassword: {{ .Values.secrets.redisPassword | b64enc | quote }}
{{- end }}
Expand Down

0 comments on commit bddc91c

Please sign in to comment.