fix(migrations): handle missing rabbitmq CRD in migration 34 by IvanHunters · Pull Request #2168 · cozystack/cozystack

@IvanHunters

Migration 34 fails when rabbitmqs.apps.cozystack.io CRD does not exist,
which happens when RabbitMQ was never installed on the cluster. Add a
check for CRD presence before attempting to list resources.

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>

gemini-code-assist[bot]

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Mar 10, 2026

@kvaps kvaps marked this pull request as ready for review

March 10, 2026 07:18

@dosubot dosubot bot added the size:XS

This PR changes 0-9 lines, ignoring generated files.

label

Mar 10, 2026

@dosubot dosubot bot added the bug

Something isn't working

label

Mar 10, 2026

@dosubot dosubot bot added the size:XS

This PR changes 0-9 lines, ignoring generated files.

label

Mar 10, 2026

kvaps added a commit that referenced this pull request

Mar 10, 2026
…n migration 34 (#2180)

# Description
Backport of #2168 to `release-1.1`.