[RabbitMQ] Fixed guest account removal

Fixed condition where node names were blank under certain conditions
and account would not get removed

Change-Id: Idf895eb649a439844b9a90fdcb57f5f022717079
This commit is contained in:
ju217q 2022-04-12 08:27:08 -04:00
parent 30c3a2e033
commit 37ac688842
3 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v3.9.0
description: OpenStack-Helm RabbitMQ
name: rabbitmq
version: 0.1.22
version: 0.1.23
home: https://github.com/rabbitmq/rabbitmq-server
...

View File

@ -79,6 +79,8 @@ if test "$(active_rabbit_nodes)" -gt "$RABBIT_REPLICA_COUNT"; then
rabbitmqctl -l -n "${PRIMARY_NODE}" cluster_status
fi
# Get current node list
PRIMARY_NODE="$(sorted_node_list | awk '{ print $1; exit }')"
# Delete guest admin user
echo "Removing Guest admin user account"
rabbitmqctl -l -n "${PRIMARY_NODE}" delete_user guest || true

View File

@ -22,4 +22,5 @@ rabbitmq:
- 0.1.20 Bump Rabbitmq version to 3.9.0
- 0.1.21 Updated naming for subchart compatibility
- 0.1.22 Remove guest admin account
- 0.1.23 Fixed guest account removal
...