Skip to content

Commit

Permalink
DRIVERS-2882 Update k8s setup script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
abr-egn committed Jan 7, 2025
1 parent 5a39f4f commit ad2f2f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .evergreen/auth_oidc/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,7 @@ Where the test looks something like:
export K8S_DRIVERS_TAR_FILE=/tmp/driver.tgz
git archive -o $K8S_DRIVERS_TAR_FILE HEAD
export K8S_TEST_CMD="OIDC_PROVIDER_NAME=k8s ./.evergreen/run-mongodb-oidc-test.sh"
bash ./.evergreen/auth_oidc/k8s/run-driver-test.sh
bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup-pod.sh
bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/run-driver-test.sh
bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown-pod.sh
```
4 changes: 2 additions & 2 deletions .evergreen/auth_oidc/k8s/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "$1" == "local" ]; then
cat <<EOF >> "$SCRIPT_DIR/secrets-export.sh"
export OIDC_SERVER_TYPE=local
export MONGODB_URI="$URI"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s&authSource=%24external"
export OIDC_ADMIN_USER=bob
export OIDC_ADMIN_PWD=pwd123
EOF
Expand Down Expand Up @@ -97,7 +97,7 @@ URI=$(check_deployment)
cat <<EOF >> "secrets-export.sh"
export OIDC_SERVER_TYPE=atlas
export MONGODB_URI="$URI"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s"
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s&authSource=%24external"
export OIDC_ADMIN_USER=$OIDC_ATLAS_USER
export OIDC_ADMIN_PWD=$OIDC_ATLAS_PASSWORD
EOF
Expand Down

0 comments on commit ad2f2f8

Please sign in to comment.