Ignore lint issues for deprecated Pool.Subjects()

- https://github.com/golang/go/blob/4aa1efed4853ea067d665a952eee77c52faac774/src/crypto/x509/cert_pool.go#L243-L244
This commit is contained in:
Joshua Casey
2023-01-31 10:10:44 -06:00
parent b9c8e359ab
commit 77041760cc
4 changed files with 12 additions and 2 deletions
+1
View File
@@ -720,6 +720,7 @@ func validateKubeconfig(ctx context.Context, flags getKubeconfigParams, kubeconf
func countCACerts(pemData []byte) int {
pool := x509.NewCertPool()
pool.AppendCertsFromPEM(pemData)
//nolint:staticcheck // since we're not using .Subjects() to access the system pool
return len(pool.Subjects())
}