Skip to content

Commit fe0948a

Browse files
committed
add test scripts and periodic prow job for testing kubernetes two steps upgrade
* add test scripts to perform two steps upgrade - binary version upgrade and emulated version upgrade. * config a n-minus-1 prow job for the new test.
1 parent c6d2a67 commit fe0948a

File tree

3 files changed

+597
-0
lines changed

3 files changed

+597
-0
lines changed

config/jobs/kubernetes/sig-testing/compatibility-versions-e2e.yaml

+58
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,61 @@ periodics:
165165
# this is mostly for building kubernetes
166166
memory: 14Gi
167167
cpu: 7
168+
- interval: 1h
169+
cluster: k8s-infra-prow-build
170+
name: ci-kubernetes-e2e-kind-compatibility-versions-with-two-steps-n-minus-1
171+
annotations:
172+
testgrid-dashboards: sig-testing-kind
173+
testgrid-tab-name: compatibility-versions-with-two-steps-n-minus-1
174+
description: Uses kind to run e2e tests from the n-1 kubernetes release against a latest kubernetes master components w/ binary version upgrade and emulated version upgrade.
175+
# TODO(#34269) route the alert email to a rotation vs individual email and update owners in experiment/compatibility-versions
176+
testgrid-alert-email: ynfan@google.com
177+
testgrid-num-columns-recent: '6'
178+
labels:
179+
preset-dind-enabled: "true"
180+
preset-kind-volume-mounts: "true"
181+
decorate: true
182+
decoration_config:
183+
timeout: 60m
184+
extra_refs:
185+
- org: kubernetes
186+
repo: kubernetes
187+
base_ref: master
188+
path_alias: k8s.io/kubernetes
189+
workdir: true
190+
- org: kubernetes
191+
repo: test-infra
192+
base_ref: master
193+
path_alias: k8s.io/test-infra
194+
spec:
195+
containers:
196+
- image: gcr.io/k8s-staging-test-infra/krte:v20250422-9d0e6fd518-master
197+
imagePullPolicy: Always # pull latest image for canary testing
198+
command:
199+
- wrapper.sh
200+
- bash
201+
- -c
202+
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && ./../test-infra/experiment/compatibility-versions/e2e-k8s-compatibility-versions-with-two-steps.sh
203+
env:
204+
- name: VERSION_DELTA
205+
value: "1"
206+
- name: SKIP
207+
value: Alpha|Disruptive|Slow|Flaky|IPv6|LoadBalancer|PodSecurityPolicy|nfs
208+
- name: PARALLEL
209+
value: "true"
210+
- name: FEATURE_GATES
211+
value: '{"AllBeta":true, "MultiCIDRServiceAllocator":false}'
212+
- name: RUNTIME_CONFIG
213+
value: '{"api/beta":"true", "api/ga":"true"}'
214+
# we need privileged mode in order to do docker in docker
215+
securityContext:
216+
privileged: true
217+
resources:
218+
limits:
219+
memory: 9Gi
220+
cpu: 7
221+
requests:
222+
# these are both a bit below peak usage during build
223+
# this is mostly for building kubernetes
224+
memory: 9Gi
225+
cpu: 7

0 commit comments

Comments
 (0)