Skip to content

Commit

Permalink
[stable/2023.2] Enable feature flags on upgrade (#1479)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #1471
/assign mnaser
  • Loading branch information
vexxhost-bot authored Jun 28, 2024
1 parent 090b89b commit e503861
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions roles/rabbitmq/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@
- name: Wait for confirmation of RabbitMQ cluster spec
ansible.builtin.pause:

- name: Enable all feature flags for upgrade
when:
- _rabbitmq_cluster.resources | length > 0
- _rabbitmq_cluster.resources[0].spec.image != _rabbitmq_merged_spec.image
vars:
_rabbitmq_merged_spec: "{{ _rabbitmq_spec | combine(rabbitmq_spec, recursive=True) }}"
kubernetes.core.k8s_exec:
namespace: openstack
pod: "rabbitmq-{{ rabbitmq_cluster_name }}-server-0"
command: rabbitmqctl enable_feature_flag all

- name: Deploy cluster
kubernetes.core.k8s:
state: present
Expand Down

0 comments on commit e503861

Please sign in to comment.