Skip to content

Commit d7f9c34

Browse files
committed
Divide into tasks
1 parent 2da36e1 commit d7f9c34

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.evergreen/.evg.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ functions:
210210
script: |
211211
DRIVERS_TOOLS="${DRIVERS_TOOLS}" bash ${DRIVERS_TOOLS}/.evergreen/atlas_data_lake/run-mongohouse-image.sh
212212
213+
"assume-aws-role":
214+
- command: ec2.assume_role
215+
params:
216+
role_arn: ${aws_test_secrets_role}
217+
duration_seconds: 1800
218+
213219
"run load-balancer":
214220
- command: shell.exec
215221
params:
@@ -945,18 +951,23 @@ tasks:
945951
export GCPOIDC_TEST_CMD="OIDC_ENV=gcp ./.evergreen/run-mongodb-oidc-test.sh"
946952
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/gcp/run-driver-test.sh
947953
948-
- name: "oidc-auth-test-k8s"
954+
- name: "oidc-auth-test-k8s-eks-task"
949955
commands:
950-
- command: ec2.assume_role
951-
params:
952-
role_arn: ${aws_test_secrets_role}
953-
duration_seconds: 1800
956+
- func: "assume-aws-role"
954957
- func: "oidc-auth-test-k8s-func"
955958
vars:
956959
VARIANT: eks
960+
961+
- name: "oidc-auth-test-k8s-aks-task"
962+
commands:
963+
- func: "assume-aws-role"
957964
- func: "oidc-auth-test-k8s-func"
958965
vars:
959966
VARIANT: aks
967+
968+
- name: "oidc-auth-test-k8s-gke-task"
969+
commands:
970+
- func: "assume-aws-role"
960971
- func: "oidc-auth-test-k8s-func"
961972
vars:
962973
VARIANT: gke
@@ -2056,9 +2067,7 @@ task_groups:
20562067
- func: fetch source
20572068
- func: prepare resources
20582069
- func: fix absolute paths
2059-
- command: ec2.assume_role
2060-
params:
2061-
role_arn: ${aws_test_secrets_role}
2070+
- func: "assume-aws-role"
20622071
- command: subprocess.exec
20632072
params:
20642073
binary: bash
@@ -2132,9 +2141,7 @@ task_groups:
21322141
- func: fetch source
21332142
- func: prepare resources
21342143
- func: fix absolute paths
2135-
- command: ec2.assume_role
2136-
params:
2137-
role_arn: ${aws_test_secrets_role}
2144+
- func: "assume-aws-role"
21382145
- command: subprocess.exec
21392146
params:
21402147
binary: bash
@@ -2148,7 +2155,9 @@ task_groups:
21482155
args:
21492156
- ${DRIVERS_TOOLS}/.evergreen/auth_oidc/k8s/teardown.sh
21502157
tasks:
2151-
- oidc-auth-test-k8s
2158+
- "oidc-auth-test-k8s-eks-task"
2159+
- "oidc-auth-test-k8s-aks-task"
2160+
- "oidc-auth-test-k8s-gke-task"
21522161

21532162
buildvariants:
21542163

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy