Skip to content

Commit 6b18b96

Browse files
fix: reference to removed field
1 parent 475ed17 commit 6b18b96

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

helm/defectdojo/templates/_helpers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Create the name of the service account to use
6161
{{- if .Values.redis.enabled -}}
6262
{{- printf "%s-%s" .Release.Name "redis-master" | trunc 63 | trimSuffix "-" -}}
6363
{{- else -}}
64-
{{- .Values.celery.brokerHost }}
64+
{{ .Values.celery.brokerHost }}
6565
{{- end -}}
6666
{{- end -}}
6767
{{- end -}}
@@ -71,9 +71,9 @@ Create the name of the service account to use
7171
*/}}
7272
{{- define "redis.scheme" -}}
7373
{{- if eq .Values.celery.broker "redis" -}}
74-
{{- if .Values.redis.transportEncryption.enabled -}}
74+
{{- if .Values.redis.tls.enabled -}}
7575
{{- printf "rediss" -}}
76-
{{- else if eq .Values.redis.scheme "sentinel" -}}
76+
{{- else if .Values.redis.sentinel.enabled -}}
7777
{{- printf "sentinel" -}}
7878
{{- else -}}
7979
{{- printf "redis" -}}

helm/defectdojo/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ data:
2828
DD_CELERY_BROKER_USER: ''
2929
DD_CELERY_BROKER_HOST: {{ if eq .Values.celery.broker "redis" }}{{ template "redis.hostname" . }}{{ end }}
3030
DD_CELERY_BROKER_PORT: '{{ if eq .Values.celery.broker "redis" }}{{- if ( hasKey .Values.redis "master" ) -}}{{ .Values.redis.master.service.ports.redis }}{{ else }}6379{{ end }}{{- end -}}'
31-
DD_CELERY_BROKER_PARAMS: '{{ if eq .Values.celery.broker "redis" }}{{- if .Values.redis.transportEncryption.enabled -}}{{ .Values.redis.transportEncryption.params | default "ssl_cert_reqs=optional" }}{{ end }}{{ end }}'
31+
DD_CELERY_BROKER_PARAMS: '{{ if eq .Values.celery.broker "redis" }}{{- if .Values.redis.tls.enabled -}}{{ .Values.celery.brokerParams | default "ssl_cert_reqs=optional" }}{{ end }}{{ end }}'
3232
DD_CELERY_BROKER_PATH: '{{ .Values.celery.path | default "//" }}'
3333
DD_CELERY_LOG_LEVEL: {{ .Values.celery.logLevel }}
3434
DD_CELERY_WORKER_POOL_TYPE: {{ .Values.celery.worker.appSettings.poolType | default "solo" }}

helm/defectdojo/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ celery:
147147
broker: redis
148148
# To use an external celery broker, set the hostname here
149149
brokerHost: ""
150+
# Parameters attached to the broker URL, defaults to "ssl_cert_reqs=optional" if redis.tls.enabled
151+
brokerParams: ""
150152
logLevel: INFO
151153
annotations: {}
152154
beat:
@@ -447,7 +449,7 @@ gke:
447449
# Only works with serviceAccount.create = true
448450
workloadIdentityEmail: ""
449451

450-
# For more advance options check the bitnami chart documentation: https://github.com/bitnami/charts/tree/master/bitnami/redis
452+
# For more advance options check the bitnami chart documentation: https://github.com/bitnami/charts/tree/main/bitnami/redis
451453
redis:
452454
# To use an external Redis instance, set enabled to false and set the address in .Values.celery.brokerHost
453455
enabled: true

0 commit comments

Comments
 (0)