Helm-Toolkit: adds import additional rabbitmq configuration
It adds an ability to specify the auxiliary configuraiton for rabbitmq like policies, permissions loading json formatted data Change-Id: I85240a50fb64a4d74454768034fe3bdcf25f3019 Signed-off-by: Ruslan Khanbikov <rk760n@att.com>
This commit is contained in:
parent
5d622a806e
commit
5ae782ff52
@ -64,6 +64,10 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ index $envAll.Values.secrets.oslo_messaging $serviceName }}
|
name: {{ index $envAll.Values.secrets.oslo_messaging $serviceName }}
|
||||||
key: RABBITMQ_CONNECTION
|
key: RABBITMQ_CONNECTION
|
||||||
|
{{- if $envAll.Values.conf.rabbitmq }}
|
||||||
|
- name: RABBITMQ_AUXILIARY_CONFIGURATION
|
||||||
|
value: {{ toJson $envAll.Values.conf.rabbitmq | quote }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: rabbit-init-sh
|
- name: rabbit-init-sh
|
||||||
configMap:
|
configMap:
|
||||||
|
@ -75,4 +75,12 @@ rabbitmqadmin_cli \
|
|||||||
configure=".*" \
|
configure=".*" \
|
||||||
write=".*" \
|
write=".*" \
|
||||||
read=".*"
|
read=".*"
|
||||||
|
|
||||||
|
if [ ! -z "$RABBITMQ_AUXILIARY_CONFIGURATION" ]
|
||||||
|
then
|
||||||
|
echo "Applying additional configuration"
|
||||||
|
echo "${RABBITMQ_AUXILIARY_CONFIGURATION}" > /tmp/rmq_definitions.json
|
||||||
|
rabbitmqadmin_cli import /tmp/rmq_definitions.json
|
||||||
|
fi
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user