From 541336b9978077264197894bd64c64ea37480965 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Mon, 21 Sep 2020 13:02:59 -0500 Subject: [PATCH] Fix docstring for exchange credential CLI. Signed-off-by: Matt Moyer --- cmd/pinniped/cmd/exchange_credential.go | 6 ++++++ cmd/pinniped/cmd/exchange_credential_test.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/cmd/pinniped/cmd/exchange_credential.go b/cmd/pinniped/cmd/exchange_credential.go index 1ad0470f..77679b8f 100644 --- a/cmd/pinniped/cmd/exchange_credential.go +++ b/cmd/pinniped/cmd/exchange_credential.go @@ -60,6 +60,12 @@ func newExchangeCredentialCmd(args []string, stdout, stderr io.Writer) *exchange Requires all of the following environment variables, which are typically set in the kubeconfig: - PINNIPED_TOKEN: the token to send to Pinniped for exchange + - PINNIPED_NAMESPACE: the namespace of the identity provider to authenticate + against + - PINNIPED_IDP_TYPE: the type of identity provider to authenticate + against (e.g., "webhook") + - PINNIPED_IDP_NAME: the name of the identity provider to authenticate + against - PINNIPED_CA_BUNDLE: the CA bundle to trust when calling Pinniped's HTTPS endpoint - PINNIPED_K8S_API_ENDPOINT: the URL for the Pinniped credential diff --git a/cmd/pinniped/cmd/exchange_credential_test.go b/cmd/pinniped/cmd/exchange_credential_test.go index 1d74f186..b074cfc0 100644 --- a/cmd/pinniped/cmd/exchange_credential_test.go +++ b/cmd/pinniped/cmd/exchange_credential_test.go @@ -43,6 +43,12 @@ var ( Requires all of the following environment variables, which are typically set in the kubeconfig: - PINNIPED_TOKEN: the token to send to Pinniped for exchange + - PINNIPED_NAMESPACE: the namespace of the identity provider to authenticate + against + - PINNIPED_IDP_TYPE: the type of identity provider to authenticate + against (e.g., "webhook") + - PINNIPED_IDP_NAME: the name of the identity provider to authenticate + against - PINNIPED_CA_BUNDLE: the CA bundle to trust when calling Pinniped's HTTPS endpoint - PINNIPED_K8S_API_ENDPOINT: the URL for the Pinniped credential