cozystack/packages/core/platform
Andrei Kvapil 25f0b91e6f
fix(migrations): handle missing rabbitmq CRD in migration 34 (#2168)
## Summary

- Migration 34 fails with `error: the server doesn't have a resource
type "rabbitmqs"` when `rabbitmqs.apps.cozystack.io` CRD does not exist
on the cluster
- This happens when RabbitMQ was never installed — the CRD is not
present, `kubectl get` fails, and `set -euo pipefail` terminates the
migration job
- Added a CRD existence check before listing resources; if CRD is
absent, the migration stamps the version and exits cleanly

## Test plan

- [ ] Deploy a cluster without RabbitMQ installed and run migration 34 —
should skip gracefully
- [ ] Deploy a cluster with RabbitMQ instances without `spec.version`
set — should patch them to `v3.13`
- [ ] Deploy a cluster with RabbitMQ instances already having
`spec.version` — should skip patching
2026-03-10 08:18:47 +01:00
..
images/migrations fix(migrations): handle missing rabbitmq CRD in migration 34 2026-03-06 19:22:21 +03:00
sources [apps] Add OpenBAO as a managed secrets management service (#2059) 2026-02-27 11:11:59 +01:00
templates [platform] Prevent version cm from deletion (#2112) 2026-02-27 13:03:33 +01:00
Chart.yaml Calculate tags and version automatically (#100) 2024-04-24 11:31:22 +02:00
Makefile [platform] Fix Makefile targets 2026-02-12 15:28:44 +01:00
values-isp-full-generic.yaml fix(platform): use correct package names in enabledPackages 2026-01-30 23:12:23 +03:00
values-isp-full.yaml refactor(platform): restructure bundles and add PackageSources 2026-01-15 14:15:00 +01:00
values-isp-hosted.yaml refactor(platform): restructure bundles and add PackageSources 2026-01-15 14:15:00 +01:00
values.yaml Prepare release v1.1.0 2026-03-06 12:03:56 +00:00