From e9c93305b97026db8c04f14cf9e611ffddb92840 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 9 May 2024 12:29:50 -0700 Subject: [PATCH] prepare-webhook-on-kind.sh specifies type and name --- hack/prepare-webhook-on-kind.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hack/prepare-webhook-on-kind.sh b/hack/prepare-webhook-on-kind.sh index 7f67e3aca..ccd3cd215 100755 --- a/hack/prepare-webhook-on-kind.sh +++ b/hack/prepare-webhook-on-kind.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# Copyright 2021 the Pinniped contributors. All Rights Reserved. +# Copyright 2021-2024 the Pinniped contributors. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # @@ -32,6 +32,9 @@ EOF # Use the CLI to get a kubeconfig that will use this WebhookAuthenticator. go build -o /tmp/pinniped ./cmd/pinniped -/tmp/pinniped get kubeconfig --static-token "$PINNIPED_TEST_USER_TOKEN" >/tmp/kubeconfig-with-webhook-auth.yaml +/tmp/pinniped get kubeconfig \ + --concierge-authenticator-type webhook \ + --concierge-authenticator-name my-webhook \ + --static-token "$PINNIPED_TEST_USER_TOKEN" >/tmp/kubeconfig-with-webhook-auth.yaml echo "export KUBECONFIG=/tmp/kubeconfig-with-webhook-auth.yaml"