Skip to content

Commit fd611cd

Browse files
authored
Allow users to automatically run rabbitmq-queues rebalance all after cluster restarts (#385)
1 parent 008183c commit fd611cd

File tree

6 files changed

+472
-116
lines changed

6 files changed

+472
-116
lines changed

api/v1beta1/rabbitmqcluster_types.go

+4
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ type RabbitmqClusterSpec struct {
6464
Rabbitmq RabbitmqClusterConfigurationSpec `json:"rabbitmq,omitempty"`
6565
TLS TLSSpec `json:"tls,omitempty"`
6666
Override RabbitmqClusterOverrideSpec `json:"override,omitempty"`
67+
// If unset, or set to false, the cluster will run `rabbitmq-queues rebalance all` whenever the cluster is updated.
68+
// Has no effect if the cluster only consists of one node.
69+
// For more information, see https://www.rabbitmq.com/rabbitmq-queues.8.html#rebalance
70+
SkipPostDeploySteps bool `json:"skipPostDeploySteps,omitempty"`
6771
}
6872

6973
type RabbitmqClusterOverrideSpec struct {

config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -3693,6 +3693,12 @@ spec:
36933693
- NodePort
36943694
type: string
36953695
type: object
3696+
skipPostDeploySteps:
3697+
description: If unset, or set to false, the cluster will run `rabbitmq-queues
3698+
rebalance all` whenever the cluster is updated. Has no effect if
3699+
the cluster only consists of one node. For more information, see
3700+
https://www.rabbitmq.com/rabbitmq-queues.8.html#rebalance
3701+
type: boolean
36963702
tls:
36973703
properties:
36983704
caCertName:

0 commit comments

Comments
 (0)