[bitnami/rabbitmq] Migrate deprecated queue_leader_locator configuration (#35748)

* [bitnami/rabbitmq] Migrate deprecated queue_leader_locator configuration

Signed-off-by: Ben Foster <bpfoster@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Provide backwards compatibility for old queue_master_locator

Signed-off-by: Ben Foster <bpfoster@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Ben Foster <bpfoster@gmail.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Ben Foster
2025-08-21 07:38:36 -04:00
committed by GitHub
parent 9dca0f739c
commit ec2bbe13ee
5 changed files with 34 additions and 9 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 16.0.13 (2025-08-07)
## 16.0.14 (2025-08-13)
* [bitnami/rabbitmq] :zap: :arrow_up: Update dependency references ([#35650](https://github.com/bitnami/charts/pull/35650))
* [bitnami/rabbitmq] Migrate deprecated queue_leader_locator configuration ([#35748](https://github.com/bitnami/charts/pull/35748))
## <small>16.0.13 (2025-08-07)</small>
* [bitnami/rabbitmq] :zap: :arrow_up: Update dependency references (#35650) ([29e7af1](https://github.com/bitnami/charts/commit/29e7af193d705c9d729b5fd394a0f7dabc2fe513)), closes [#35650](https://github.com/bitnami/charts/issues/35650)
## <small>16.0.12 (2025-08-04)</small>

View File

@@ -32,4 +32,4 @@ maintainers:
name: rabbitmq
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/rabbitmq
version: 16.0.13
version: 16.0.14

View File

@@ -464,7 +464,8 @@ Because they expose different sets of data, a valid use case is to scrape metric
| `memoryHighWatermark.type` | Memory high watermark type. Either `absolute` or `relative` | `relative` |
| `memoryHighWatermark.value` | Memory high watermark value | `0.4` |
| `plugins` | List of default plugins to enable (should only be altered to remove defaults; for additional plugins use `extraPlugins`) | `rabbitmq_management rabbitmq_peer_discovery_k8s` |
| `queue_master_locator` | Changes the queue_master_locator setting in the rabbitmq config file | `min-masters` |
| `queue_leader_locator` | Changes the queue_leader_locator setting in the rabbitmq config file | `balanced` |
| `queue_master_locator` | DEPRECATED. Use queue_leader_locator instead | `""` |
| `communityPlugins` | List of Community plugins (URLs) to be downloaded during container initialization | `""` |
| `extraPlugins` | Extra plugins to enable (single string containing a space-separated list) | `rabbitmq_auth_backend_ldap` |
| `clustering.enabled` | Enable RabbitMQ clustering | `true` |

View File

@@ -278,3 +278,20 @@ Get the extraConfigurationExistingSecret secret.
{{- tpl .Values.extraConfiguration . -}}
{{- end -}}
{{- end -}}
{{/*
Get the value for queue_leader_locator. This will provide backwards compatibility for the old queue_master_locator configuration,
mapping old values into the correct new values.
*/}}
{{- define "rabbitmq.queueLocator" -}}
{{- $value := .Values.queue_leader_locator -}}
{{- if not (empty .Values.queue_master_locator) -}}
{{- if eq .Values.queue_master_locator "client-local" -}}
{{- $value = "client-local" -}}
{{- else -}}
{{- $value = "balanced" -}}
{{- end -}}
{{- end -}}
{{- $value -}}
{{- end -}}

View File

@@ -262,9 +262,12 @@ memoryHighWatermark:
##
plugins: "rabbitmq_management rabbitmq_peer_discovery_k8s"
## @param queue_master_locator Changes the queue_master_locator setting in the rabbitmq config file
## @param queue_leader_locator Changes the queue_leader_locator setting in the rabbitmq config file
##
queue_master_locator: min-masters
queue_leader_locator: balanced
## @param queue_master_locator DEPRECATED. Use queue_leader_locator instead
##
queue_master_locator: ""
## @param communityPlugins List of Community plugins (URLs) to be downloaded during container initialization
## Combine it with extraPlugins to also enable them.
@@ -447,8 +450,8 @@ configuration: |-
{{- if .Values.loadDefinition.enabled }}
load_definitions = {{ .Values.loadDefinition.file }}
{{- end }}
# queue master locator
queue_master_locator = {{ .Values.queue_master_locator }}
# queue leader locator
queue_leader_locator = {{ include "rabbitmq.queueLocator" . }}
# enable loopback user
{{- if not (empty .Values.auth.username) }}
loopback_users.{{ .Values.auth.username }} = {{ .Values.auth.enableLoopbackUser }}