From 84007cb1ec794313eed64128958057518b498b03 Mon Sep 17 00:00:00 2001 From: Ben Petersen Date: Thu, 11 Apr 2024 16:44:58 -0400 Subject: [PATCH] Update prepare-supervisor-on-kind.sh add github environment variables --- hack/prepare-supervisor-on-kind.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hack/prepare-supervisor-on-kind.sh b/hack/prepare-supervisor-on-kind.sh index 7b147efb7..fbe17fc1a 100755 --- a/hack/prepare-supervisor-on-kind.sh +++ b/hack/prepare-supervisor-on-kind.sh @@ -94,6 +94,13 @@ 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