Upgrade rabbitmq chart to new version
We didn't upgrade rabbitmq in ~1,5y and are now facing 2 major version upgrade:
- version: 6.18.2
+ version: 8.20.1
See https://github.com/bitnami/charts/tree/master/bitnami/rabbitmq#upgrading for a summary of breaking changes.
Imo we should do this ASAP before we get more users.
I already tried upgrading in !41 (merged) but hit this and reverted:
Helm upgrade failed: template: nextcloud-onlyoffice/charts/rabbitmq/templates/NOTES.txt:165:4: executing "nextcloud-onlyoffice/charts/rabbitmq/templates/NOTES.txt" at <include "common.errors.upgrade.passwords.empty" (dict "validationErrors" (list $requiredRabbitmqPasswordErrors) "context" $)>: error calling include: template: nextcloud-onlyoffice/charts/postgresql/charts/common/templates/_errors.tpl:21:48: executing "common.errors.upgrade.passwords.empty" at <fail>: error calling fail:
PASSWORDS ERROR: You must provide your current passwords when upgrading the release.
Note that even after reinstallation, old credentials may be needed as they may be kept in persistent volume claims.
Further information can be obtained at https://docs.bitnami.com/general/how-to/troubleshoot-helm-chart-issues/#credential-errors-while-upgrading-chart-releases
'auth.password' must not be empty, please add '--set auth.password=$RABBITMQ_PASSWORD' to the command. To get the current value:
export RABBITMQ_PASSWORD=$(kubectl get secret --namespace "oas-apps" nc-rabbitmq -o jsonpath="{.data.rabbitmq-password}" | base64 --decode)
'auth.erlangCookie' must not be empty, please add '--set auth.erlangCookie=$RABBITMQ_ERLANG_COOKIE' to the command. To get the current value:
export RABBITMQ_ERLANG_COOKIE=$(kubectl get secret --namespace "oas-apps" nc-rabbitmq -o jsonpath="{.data.rabbitmq-erlang-cookie}" | base64 --decode)