From 0ceb10114287442b46dab1cb6390d1c74856c98e Mon Sep 17 00:00:00 2001 From: Amol Deodhar Date: Thu, 15 Aug 2024 22:28:16 -0400 Subject: [PATCH] fix lint errors --- controller/linodecluster_controller.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/controller/linodecluster_controller.go b/controller/linodecluster_controller.go index 54dfcf8a..05bef44d 100644 --- a/controller/linodecluster_controller.go +++ b/controller/linodecluster_controller.go @@ -20,6 +20,7 @@ import ( "context" "fmt" "net/http" + "strings" "time" "github.com/go-logr/logr" @@ -139,8 +140,8 @@ func (r *LinodeClusterReconciler) reconcile( }() labels := map[string]string{ - clusterv1.ClusterNameLabel: clusterScope.LinodeCluster.Name, - clusterv1.MachineControlPlaneNameLabel: clusterScope.LinodeCluster.Name + "-control-plane" + clusterv1.ClusterNameLabel: clusterScope.LinodeCluster.Name, + clusterv1.MachineControlPlaneNameLabel: clusterScope.LinodeCluster.Name + "-control-plane", } if err := r.TracedClient().List(ctx, &clusterScope.LinodeMachines, client.InNamespace(clusterScope.LinodeCluster.Namespace), client.MatchingLabels(labels)); err != nil { return res, err