fix broker.type in helm values

This commit is contained in:
Joey Orlando 2023-08-31 11:15:01 +02:00
parent 4cdcc25e24
commit 26747bcd75
No known key found for this signature in database
GPG key ID: 469E88366B17F644
2 changed files with 6 additions and 0 deletions

View file

@ -528,10 +528,15 @@
key: {{ include "snippet.redis.password.secret.key" . | quote}}
{{- end }}
{{- /*
when broker.type != rabbitmq, we do not need to include rabbitmq environment variables
*/}}
{{- define "snippet.broker.env" -}}
{{- include "snippet.redis.env" . }}
{{- if eq .Values.broker.type "rabbitmq" -}}
{{- include "snippet.rabbitmq.env" . }}
{{- end }}
{{- end }}
{{- define "snippet.db.env" -}}
{{- if eq .Values.database.type "mysql" }}

View file

@ -109,6 +109,7 @@ tests:
- celery/deployment.yaml
set:
broker.type: redis
rabbitmq.enabled: false
redis.enabled: false
externalRedis:
host: custom-host