Bump to go1.18.1 and fix linter errors

Signed-off-by: Monis Khan <mok@vmware.com>
This commit is contained in:
Monis Khan
2022-04-13 16:43:06 -04:00
parent 8ecf18521c
commit 8fd77b72df
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -714,7 +714,7 @@ func validateKubeconfig(ctx context.Context, flags getKubeconfigParams, kubeconf
func countCACerts(pemData []byte) int {
pool := x509.NewCertPool()
pool.AppendCertsFromPEM(pemData)
return len(pool.Subjects())
return len(pool.Subjects()) // nolint: staticcheck // not system cert pool
}
func hasPendingStrategy(credentialIssuer *configv1alpha1.CredentialIssuer) bool {