mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-23 12:06:20 +10:00
Bugfix rabbitmq pre stop hook not applied when rebalance is true (#3171)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user