Skip to content

Commit e540383

Browse files
committed
fix oidc azure and gcp
1 parent 5313eeb commit e540383

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.evergreen/scripts/oidc_tester.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ def setup_oidc(sub_test_name: str) -> dict[str, str] | None:
3535
if sub_test_name == "azure":
3636
env["AZUREOIDC_VMNAME_PREFIX"] = "PYTHON_DRIVER"
3737
if "-remote" not in sub_test_name:
38+
if sub_test_name == "azure":
39+
os.environ["AZUREKMS_VMNAME_PREFIX"] = "PYTHON_DRIVER"
40+
# Found using "az vm image list --output table"
41+
os.environ[
42+
"AZUREKMS_IMAGE"
43+
] = "Canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2:latest"
44+
else:
45+
os.environ["GCPKMS_IMAGEFAMILY"] = "debian-12"
3846
run_command(f"bash {target_dir}/setup.sh", env=env)
3947
if sub_test_name in K8S_NAMES:
4048
run_command(f"bash {target_dir}/setup-pod.sh {sub_test_name}")

0 commit comments

Comments
 (0)