Skip to content

Commit d8716af

Browse files
committed
Bump golang, fix lints.
1 parent 2e2d326 commit d8716af

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

bin/kubectl-rabbitmq-plugin/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/rabbitmq/cluster-operator/kubectl-rabbitmq-plugin
22

3-
go 1.25.7
3+
go 1.26.0
44

55
require (
66
github.com/rabbitmq/cluster-operator/v2 v2.0.0-00010101000000-000000000000

controllers/rabbitmqcluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,9 @@ func (r *RabbitmqClusterReconciler) updateStatusConditions(ctx context.Context,
350350
}
351351

352352
func (r *RabbitmqClusterReconciler) getChildResources(ctx context.Context, rmq *rabbitmqv1beta1.RabbitmqCluster) ([]runtime.Object, error) {
353+
var endpointSlice *discoveryv1.EndpointSlice
353354
sts := &appsv1.StatefulSet{}
354355
endpointSliceList := &discoveryv1.EndpointSliceList{}
355-
endpointSlice := &discoveryv1.EndpointSlice{}
356356

357357
if err := r.Get(ctx,
358358
types.NamespacedName{Name: rmq.ChildResourceName("server"), Namespace: rmq.Namespace},

controllers/reconcile_scale_zero.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (r *RabbitmqClusterReconciler) saveReplicasBeforeZero(ctx context.Context,
8181
// If the annotation rabbitmq.com/before-zero-replicas-configured exists it will be deleted.
8282
func (r *RabbitmqClusterReconciler) removeReplicasBeforeZeroAnnotationIfExists(ctx context.Context, cluster *v1beta1.RabbitmqCluster) {
8383
if _, ok := cluster.Annotations[beforeZeroReplicasConfigured]; ok {
84-
r.deleteAnnotation(ctx, cluster, beforeZeroReplicasConfigured)
84+
_ = r.deleteAnnotation(ctx, cluster, beforeZeroReplicasConfigured)
8585
}
8686
}
8787

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/rabbitmq/cluster-operator/v2
22

3-
go 1.25.7
3+
go 1.26.0
44

55
require (
66
github.com/cloudflare/cfssl v1.6.5

internal/promtool/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module promtool
22

3-
go 1.25.7
3+
go 1.26
44

55
tool github.com/prometheus/prometheus/cmd/promtool
66

internal/tools/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module tools
22

3-
go 1.25.7
3+
go 1.26
44

55
require (
66
github.com/Masterminds/goutils v1.1.1 // indirect

0 commit comments

Comments
 (0)