upgrade to golangci-lint v2.7.2, bring back some nolint directives

This commit is contained in:
Ryan Richard
2025-12-22 11:03:46 -08:00
parent 44509d016e
commit 54d530784d
7 changed files with 8 additions and 6 deletions

View File

@@ -115,7 +115,7 @@ func expectTLSConfigForServicePort(
) {
portAsInt, err := strconv.Atoi(localPortAsStr)
require.NoError(t, err)
portAsUint := uint16(portAsInt) // okay to cast because it will only be legal port numbers
portAsUint := uint16(portAsInt) //nolint:gosec // okay to cast because it will only be legal port numbers
startKubectlPortForward(ctx, t, localPortAsStr, "443", serviceName, serviceNamespace)