Skip to content

Commit 65f8d0c

Browse files
committed
update flower
1 parent da9d25b commit 65f8d0c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

charts/invenio/templates/_helpers.tpl

+3
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
222222
value: {{ $uri}}
223223
- name: INVENIO_CELERY_BROKER_URL
224224
value: {{ $uri}}
225+
- name: RABBITMQ_API_URI
226+
value: "http://$(INVENIO_AMQP_BROKER_USER):$(INVENIO_AMQP_BROKER_PASSWORD)@$(INVENIO_AMQP_BROKER_HOST):$(INVENIO_AMQP_BROKER_PORT)/api/"
225227
{{- end -}}
228+
226229
######################### OpenSearch hostname #########################
227230
{{/*
228231
This template renders the hostname of the OpenSearch instance.

charts/invenio/templates/flower/deployment.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ spec:
2323
[
2424
"celery",
2525
"--config=/var/celery/celeryconfig.py",
26-
{{ printf "--broker=%s" (include "invenio.rabbitmq.uri" .) }},
26+
"--broker=$(INVENIO_CELERY_BROKER_URL)",
2727
"flower",
28-
{{ printf "--broker_api=%s" (include "invenio.rabbitmq.apiUri" .) }},
28+
"--broker_api=$(RABBITMQ_API_URI)",
2929
"--basic_auth=$(FLOWER_BASIC_AUTH_CREDENTIALS)",
3030
"--conf=/var/flower/flowerconfig.py"
3131
]
@@ -44,6 +44,7 @@ spec:
4444
secretKeyRef:
4545
name: {{ .Values.flower.secret_name }}
4646
key: FLOWER_BASIC_AUTH_CREDENTIALS
47+
{{- include "invenio.config.queue" . | nindent 12 }}
4748
{{- if .Values.flower.resources }}
4849
resources: {{- toYaml .Values.flower.resources | nindent 12 }}
4950
{{- end }}

0 commit comments

Comments
 (0)