-
Notifications
You must be signed in to change notification settings - Fork 282
Enable all feature flags for new clusters #434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we should move the set plugins functionality to "post deploy", given that there are cases where the plugins might be updated without a (re)deploy. For example, by updating the CR with rabbitmq_federation
, the plugin is enabled and the cluster should not be restarted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great changes, and thanks for the great refactoring along the way!
because the RabbitMQ CLI commands get executed at the end of the reconcile loop which does not necessarily mean that a deployment just finished. This commit also fixes a bug where the rabbitmq-plugins command was run on every successful reconile loop.
@Zerpet good point, previously we ran "post deploy" at the end of every successful reconcile loop. The post deploy flag
|
I think there is something wrong with the functionality. It works if I just However, I wanted to make sure it would not enable feature flags for pre-existing clusters so I deployed from |
Please ignore my comment above. Because we removed double prefix in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest changes look good
Closes #414
Notes:
created
of the StatefulSet.rabbitmq.com/createdAt
is added onto the created StatefulSet.rabbitmqctl enable_feature_flag
is used on the first pod of the StatefulSet to enable all stable and previously disabled feature flags. (In future, we could add feature flag methods to https://github.com/michaelklishin/rabbit-hole/ to not exec into the pod anymore.)