From 2054708c53faf5c905e26a8c8549e55d4533ca73 Mon Sep 17 00:00:00 2001 From: Ryan Richard Date: Thu, 16 May 2024 13:49:53 -0700 Subject: [PATCH] update hack/prepare-supervisor-on-kind.sh for GitHub IDPs --- hack/prepare-supervisor-on-kind.sh | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/hack/prepare-supervisor-on-kind.sh b/hack/prepare-supervisor-on-kind.sh index 2c4467f0a..0a8a971a3 100755 --- a/hack/prepare-supervisor-on-kind.sh +++ b/hack/prepare-supervisor-on-kind.sh @@ -94,13 +94,6 @@ if [[ "$use_oidc_upstream" == "no" && "$use_ldap_upstream" == "no" && "$use_ad_u exit 1 fi -if [[ "$use_github_upstream" == "yes" ]]; then - if [[ "${PINNIPED_TEST_SUPERVISOR_UPSTREAM_GITHUB_CLIENT_ID:-}" == "" || "${PINNIPED_TEST_SUPERVISOR_UPSTREAM_GITHUB_CLIENT_SECRET:-}" == "" ]]; then - echo "Error: Please set environment vars PINNIPED_TEST_SUPERVISOR_UPSTREAM_GITHUB_CLIENT_ID and PINNIPED_TEST_SUPERVISOR_UPSTREAM_GITHUB_CLIENT_SECRET when using --github flag" - exit 1 - fi -fi - # Read the env vars output by hack/prepare-for-integration-tests.sh source /tmp/integration-test-env @@ -303,7 +296,7 @@ EOF fi if [[ "$use_github_upstream" == "yes" ]]; then - # Make an GitHubIdentityProvider. Needs to be configured with an actual GitHub App or GitHub OAuth App. + # Make an GitHubIdentityProvider. Needs to be configured with an actual GitHub App or GitHub OAuth App. cat <