Skip to content

Commit

Permalink
make linter happy with goimports
Browse files Browse the repository at this point in the history
Signed-off-by: Kit Patella <kit@defenseunicorns.com>
  • Loading branch information
mkcp committed Oct 28, 2024
1 parent 5093b36 commit 4b623a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pkg/cluster/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package cluster
import (
"context"
"fmt"
"github.com/zarf-dev/zarf/src/pkg/logger"
"io"
"net/http"
"net/url"
Expand All @@ -24,6 +23,7 @@ import (

"github.com/avast/retry-go/v4"
"github.com/defenseunicorns/pkg/helpers/v2"
"github.com/zarf-dev/zarf/src/pkg/logger"
"github.com/zarf-dev/zarf/src/pkg/message"
"github.com/zarf-dev/zarf/src/types"
)
Expand Down Expand Up @@ -222,6 +222,10 @@ func (c *Cluster) checkForZarfConnectLabel(ctx context.Context, name string) (Tu
zt.urlSuffix = svc.Annotations[ZarfConnectAnnotationURL]

message.Debugf("tunnel connection match: %s/%s on port %d", svc.Namespace, svc.Name, zt.RemotePort)
logger.From(ctx).Debug("tunnel connection match",
"namespace", svc.Namespace,
"name", svc.Name,
"remotePort", zt.RemotePort)
} else {
return zt, fmt.Errorf("no matching services found for %s", name)
}
Expand Down

0 comments on commit 4b623a7

Please sign in to comment.