Skip to content

Add --rabbitmq-version flag to kubectl-rabbitmq create#2156

Merged
Zerpet merged 1 commit into
mainfrom
feature/kubectl-rabbitmq-version-flag
Jun 10, 2026
Merged

Add --rabbitmq-version flag to kubectl-rabbitmq create#2156
Zerpet merged 1 commit into
mainfrom
feature/kubectl-rabbitmq-version-flag

Conversation

@Zerpet

@Zerpet Zerpet commented Jun 5, 2026

Copy link
Copy Markdown
Member

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

Rescued this bit of functionality from #2147

  • Added --rabbitmq-version (and -v shorthand) flag to the kubectl-rabbitmq create command.
  • If --rabbitmq-version is provided, the rabbitmq.com/version annotation is set on the RabbitmqCluster.
  • If --image is not provided, the image is automatically templated as rabbitmq:<version>-management.
  • Added unit tests to verify the new flag's behavior with and without the --image flag.

Additional Context

This feature allows users to easily specify the RabbitMQ version when creating a cluster using the CLI, automatically setting the correct annotation and image unless an image is explicitly overridden.

Local Testing

Unit tests passing locally.

@Zerpet Zerpet added this to the v2.22.0 milestone Jun 5, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@Zerpet Zerpet force-pushed the feature/kubectl-rabbitmq-version-flag branch from eb78ac8 to 614ea2c Compare June 5, 2026 11:41
@Zerpet Zerpet marked this pull request as ready for review June 5, 2026 11:41
@Zerpet Zerpet requested review from MirahImage and mkuratczyk June 8, 2026 07:38
@Zerpet Zerpet modified the milestones: v2.21.1, v2.22.0 Jun 10, 2026
@Zerpet Zerpet merged commit 6167d97 into main Jun 10, 2026
41 checks passed
@Zerpet Zerpet deleted the feature/kubectl-rabbitmq-version-flag branch June 10, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants