Skip to content

Remove RabbitMQ 3.8 support #1111

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

Merged
merged 3 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
k8s:
- v1.24.1
rabbitmq-image:
- rabbitmq:3.9-management
- rabbitmq:3.9.0-management # minimum supported version
- rabbitmq:3.10-management
- pivotalrabbitmq/rabbitmq:master-otp-min
- pivotalrabbitmq/rabbitmq:master-otp-max
Expand Down
2 changes: 1 addition & 1 deletion controllers/reconcile_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r *RabbitmqClusterReconciler) runRabbitmqCLICommandsIfAnnotated(ctx contex
func (r *RabbitmqClusterReconciler) runEnableFeatureFlagsCommand(ctx context.Context, rmq *rabbitmqv1beta1.RabbitmqCluster, sts *appsv1.StatefulSet) error {
logger := ctrl.LoggerFrom(ctx)
podName := fmt.Sprintf("%s-0", rmq.ChildResourceName("server"))
cmd := "set -eo pipefail; rabbitmqctl -s list_feature_flags name state stability | (grep 'disabled\\sstable$' || true) | cut -f 1 | xargs -r -n1 rabbitmqctl enable_feature_flag"
cmd := "rabbitmqctl enable_feature_flag all"
stdout, stderr, err := r.exec(rmq.Namespace, podName, "rabbitmq", "bash", "-c", cmd)
if err != nil {
msg := "failed to enable all feature flags on pod"
Expand Down
2 changes: 1 addition & 1 deletion controllers/reconcile_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var _ = Describe("Reconcile CLI", func() {
return sts.ObjectMeta.Annotations
}, 5).ShouldNot(HaveKey("rabbitmq.com/createdAt"))
Expect(fakeExecutor.ExecutedCommands()).To(ContainElement(command{"bash", "-c",
"set -eo pipefail; rabbitmqctl -s list_feature_flags name state stability | (grep 'disabled\\sstable$' || true) | cut -f 1 | xargs -r -n1 rabbitmqctl enable_feature_flag"}))
"rabbitmqctl enable_feature_flag all"}))
})
})
})
Expand Down
4 changes: 1 addition & 3 deletions internal/resource/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ cluster_formation.k8s.host = kubernetes.default
cluster_formation.k8s.address_type = hostname
cluster_partition_handling = pause_minority
queue_master_locator = min-masters
disk_free_limit.absolute = 2GB
cluster_formation.randomized_startup_delay_range.min = 0
cluster_formation.randomized_startup_delay_range.max = 60`
disk_free_limit.absolute = 2GB`

defaultTLSConf = `
ssl_options.certfile = /etc/rabbitmq-tls/tls.crt
Expand Down
2 changes: 0 additions & 2 deletions internal/resource/configmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ cluster_formation.k8s.address_type = hostname
cluster_partition_handling = pause_minority
queue_master_locator = min-masters
disk_free_limit.absolute = 2GB
cluster_formation.randomized_startup_delay_range.min = 0
cluster_formation.randomized_startup_delay_range.max = 60
cluster_name = ` + instanceName)
}

Expand Down