-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathcloud-provider-aws-presubmit.yaml
More file actions
205 lines (191 loc) · 7.18 KB
/
Copy pathcloud-provider-aws-presubmit.yaml
File metadata and controls
205 lines (191 loc) · 7.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
presubmits:
kubernetes/cloud-provider-aws:
- name: pull-cloud-provider-aws-e2e
cluster: eks-prow-build-cluster
decorate: true
decoration_config:
timeout: 4h
skip_if_only_changed: "^docs/|^\\.github/|\\.(md)$|^(LICENSE|OWNERS)$"
skip_branches:
- gh-pages
path_alias: k8s.io/cloud-provider-aws
labels:
preset-dind-enabled: "true"
preset-aws-credential-aws-shared-testing: "true"
spec:
serviceAccountName: aws-shared-testing-role
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20260831-6ed6668adc-master
resources:
limits:
cpu: 2
memory: 6Gi
requests:
cpu: 2
memory: 6Gi
command:
- runner.sh
args:
- make
- test-e2e
- KOPS_STATE_STORE=s3://cloud-provider-aws-shared-e2e
securityContext:
privileged: true
annotations:
testgrid-dashboards: provider-aws-cloud-provider-aws, amazon-ec2-presubmits
testgrid-tab-name: e2e
description: aws cloud provider e2e tests
testgrid-num-columns-recent: '30'
- name: pull-cloud-provider-aws-e2e-kubetest2
cluster: eks-prow-build-cluster
skip_if_only_changed: "^docs/|^\\.github/|\\.(md)$|^(LICENSE|OWNERS)$"
skip_branches:
- release-\d+\.\d+ # per-release image
annotations:
testgrid-alert-stale-results-hours: "24"
testgrid-create-test-group: "true"
testgrid-num-failures-to-alert: "10"
testgrid-dashboards: presubmits-ec2
labels:
preset-e2e-containerd-ec2: "true"
preset-dind-enabled: "true"
preset-aws-credential-aws-shared-testing: "true"
path_alias: k8s.io/cloud-provider-aws
optional: true
decorate: true
decoration_config:
timeout: 4h
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
serviceAccountName: aws-shared-testing-role
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20260831-6ed6668adc-master
command:
- runner.sh
args:
- bash
- -c
- |
set -o errexit
set -o nounset
set -o pipefail
GOPROXY=direct go install sigs.k8s.io/provider-aws-test-infra/kubetest2-ec2@latest
VERSION=$(git describe --dirty --tags --match='v*')
BUILD_IMAGE=ko.local:${VERSION}
REGION=${REGION:-"us-east-1"}
make switch-to-latest-k8s ko-build-local VERSION=${VERSION}
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
IMAGE_NAME=${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/provider-aws/cloud-controller-manager
IMAGE_TAG=${VERSION}
echo "Building and pushing test driver image to ${IMAGE_NAME}:${IMAGE_TAG}"
aws ecr get-login-password --region "${REGION}" | docker login --username AWS --password-stdin "${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com"
docker tag "${BUILD_IMAGE}" "${IMAGE_NAME}:${IMAGE_TAG}"
docker push "${IMAGE_NAME}:${IMAGE_TAG}"
kubetest2 ec2 \
--build \
--region us-east-1 \
--target-build-arch linux/amd64 \
--stage provider-aws-test-infra \
--external-cloud-provider true \
--external-cloud-provider-image="${IMAGE_NAME}:${IMAGE_TAG}" \
--up \
--down \
--test=ginkgo \
-- \
--use-built-binaries true \
--parallel=30 \
--skip-regex='\[Driver:.gcepd\]|\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]'
env:
- name: USE_DOCKERIZED_BUILD
value: "true"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
limits:
cpu: 7
memory: 10Gi
requests:
cpu: 7
memory: 10Gi
- name: pull-cloud-provider-aws-e2e-kubetest2-quick
cluster: eks-prow-build-cluster
skip_if_only_changed: "^docs/|^\\.github/|\\.(md)$|^(LICENSE|OWNERS)$"
skip_branches:
- release-\d+\.\d+ # per-release image
annotations:
testgrid-alert-stale-results-hours: "24"
testgrid-create-test-group: "true"
testgrid-num-failures-to-alert: "10"
testgrid-dashboards: presubmits-ec2
labels:
preset-e2e-containerd-ec2: "true"
preset-dind-enabled: "true"
preset-aws-credential-aws-shared-testing: "true"
path_alias: k8s.io/cloud-provider-aws
optional: true
decorate: true
decoration_config:
timeout: 4h
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
serviceAccountName: aws-shared-testing-role
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20260831-6ed6668adc-master
command:
- runner.sh
args:
- bash
- -c
- |
set -o errexit
set -o nounset
set -o pipefail
GOPROXY=direct go install sigs.k8s.io/provider-aws-test-infra/kubetest2-ec2@latest
VERSION=$(git describe --dirty --tags --match='v*')
BUILD_IMAGE=ko.local:${VERSION}
REGION=${REGION:-"us-east-1"}
make switch-to-latest-k8s ko-build-local VERSION=${VERSION}
AWS_ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
IMAGE_NAME=${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com/provider-aws/cloud-controller-manager
IMAGE_TAG=${VERSION}
echo "Building and pushing test driver image to ${IMAGE_NAME}:${IMAGE_TAG}"
aws ecr get-login-password --region "${REGION}" | docker login --username AWS --password-stdin "${AWS_ACCOUNT_ID}.dkr.ecr.${REGION}.amazonaws.com"
docker tag "${BUILD_IMAGE}" "${IMAGE_NAME}:${IMAGE_TAG}"
docker push "${IMAGE_NAME}:${IMAGE_TAG}"
VERSION=$(curl -Ls https://dl.k8s.io/ci/fast/latest-fast.txt)
kubetest2 ec2 \
--stage https://dl.k8s.io/ci/fast \
--external-cloud-provider true \
--external-cloud-provider-image="${IMAGE_NAME}:${IMAGE_TAG}" \
--version $VERSION \
--up \
--down \
--test=ginkgo \
-- \
--parallel=30 \
--test-package-url=https://dl.k8s.io \
--test-package-dir=ci/fast \
--test-package-marker=latest-fast.txt \
--focus-regex='Pods should be submitted and removed'
env:
- name: USE_DOCKERIZED_BUILD
value: "true"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
limits:
cpu: 7
memory: 10Gi
requests:
cpu: 7
memory: 10Gi