fix linter warning caused by k8s 0.33 function deprecation

This commit is contained in:
Ryan Richard
2025-05-13 12:17:14 -07:00
parent f45e0aeb3d
commit 2e4f719419
2 changed files with 7 additions and 4 deletions

View File

@@ -1049,7 +1049,8 @@ func TestImpersonationProxy(t *testing.T) { //nolint:gocyclo // yeah, it's compl
}, nil, nil)
require.NoError(t, err)
csrName, _, err := csr.RequestCertificate(
csrName, _, err := csr.RequestCertificateWithContext(
ctx,
impersonationProxySAClient.Kubernetes,
csrPEM,
"",
@@ -2635,7 +2636,8 @@ func getUIDAndExtraViaCSR(ctx context.Context, t *testing.T, uid string, client
}, nil, nil)
require.NoError(t, err)
csrName, _, err := csr.RequestCertificate(
csrName, _, err := csr.RequestCertificateWithContext(
ctx,
client,
csrPEM,
"",

View File

@@ -1,4 +1,4 @@
// Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
// Copyright 2020-2025 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package integration
@@ -292,7 +292,8 @@ func TestWhoAmI_CSR_Parallel(t *testing.T) {
}, nil, nil)
require.NoError(t, err)
csrName, csrUID, err := csr.RequestCertificate(
csrName, csrUID, err := csr.RequestCertificateWithContext(
ctx,
kubeClient,
csrPEM,
"",