From 5536155f5813fdc525600fd76128d2838e7f164a Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Wed, 12 Aug 2026 17:26:54 +0200 Subject: [PATCH] fix lint --- pkg/controller/cluster/hcp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/controller/cluster/hcp.go b/pkg/controller/cluster/hcp.go index f5e55730..2f6b157c 100644 --- a/pkg/controller/cluster/hcp.go +++ b/pkg/controller/cluster/hcp.go @@ -57,6 +57,7 @@ func (c *ClusterReconciler) ensureHCPKubernetesEndpointSlice(ctx context.Context } portStr := cmp.Or(url.Port(), "443") + port, err := strconv.Atoi(portStr) if err != nil { return err @@ -151,6 +152,7 @@ func (c *ClusterReconciler) ensureHCPKubernetesEndpoints(ctx context.Context, cl } portStr := cmp.Or(url.Port(), "443") + port, err := strconv.Atoi(portStr) if err != nil { return err