Skip to content

Commit f8420d2

Browse files
authored
DRIVERS-2882 Update k8s setup script and readme (#572)
1 parent 5a39f4f commit f8420d2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.evergreen/auth_oidc/k8s/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,7 @@ Where the test looks something like:
112112
export K8S_DRIVERS_TAR_FILE=/tmp/driver.tgz
113113
git archive -o $K8S_DRIVERS_TAR_FILE HEAD
114114
export K8S_TEST_CMD="OIDC_PROVIDER_NAME=k8s ./.evergreen/run-mongodb-oidc-test.sh"
115-
bash ./.evergreen/auth_oidc/k8s/run-driver-test.sh
115+
bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/setup-pod.sh
116+
bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/run-driver-test.sh
117+
bash ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown-pod.sh
116118
```

.evergreen/auth_oidc/k8s/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ "$1" == "local" ]; then
1313
cat <<EOF >> "$SCRIPT_DIR/secrets-export.sh"
1414
export OIDC_SERVER_TYPE=local
1515
export MONGODB_URI="$URI"
16-
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s"
16+
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s&authSource=%24external"
1717
export OIDC_ADMIN_USER=bob
1818
export OIDC_ADMIN_PWD=pwd123
1919
EOF
@@ -97,7 +97,7 @@ URI=$(check_deployment)
9797
cat <<EOF >> "secrets-export.sh"
9898
export OIDC_SERVER_TYPE=atlas
9999
export MONGODB_URI="$URI"
100-
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s"
100+
export MONGODB_URI_SINGLE="$URI/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:k8s&authSource=%24external"
101101
export OIDC_ADMIN_USER=$OIDC_ATLAS_USER
102102
export OIDC_ADMIN_PWD=$OIDC_ATLAS_PASSWORD
103103
EOF

0 commit comments

Comments
 (0)