cozystack/packages/core
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
..
flux-aio Fix tolerations for uninitialized nodes 2026-01-19 14:20:02 +01:00
installer Prepare release v1.1.0 2026-03-06 12:03:56 +00:00
platform fix(migrations): handle missing rabbitmq CRD in migration 34 (#2168) 2026-03-10 08:18:47 +01:00
talos Update Talos Linux v1.12.1 2026-01-19 10:57:14 +01:00
testing Prepare release v1.1.0 2026-03-06 12:03:56 +00:00