Bugfix rabbitmq pre stop hook not applied when rebalance is true (#3171)

This commit is contained in:
Maxence Boutet
2020-07-22 16:14:17 +02:00
committed by GitHub
parent 5884a3641f
commit cc3c27c500
2 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: rabbitmq
version: 7.5.6
version: 7.5.7
appVersion: 3.8.5
description: Open source message broker software that implements the Advanced Message Queuing Protocol (AMQP)
keywords:
+7 -8
View File
@@ -198,13 +198,6 @@ spec:
{{- if .Values.extraContainerPorts }}
{{- toYaml .Values.extraContainerPorts | nindent 12 }}
{{- end }}
lifecycle:
preStop:
exec:
command:
- bash
- -ec
- rabbitmqctl stop_app
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
exec:
@@ -238,8 +231,8 @@ spec:
{{- if .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- end }}
{{- if and .Values.clustering.rebalance (gt (.Values.replicaCount | int) 1) }}
lifecycle:
{{- if and .Values.clustering.rebalance (gt (.Values.replicaCount | int) 1) }}
postStart:
exec:
command:
@@ -252,6 +245,12 @@ spec:
done
rabbitmq-queues rebalance "all"
{{- end }}
preStop:
exec:
command:
- bash
- -ec
- rabbitmqctl stop_app
volumeMounts:
- name: configuration
mountPath: /bitnami/rabbitmq/conf