Skip to content

Commit fbc8a6c

Browse files
authored
Merge pull request #29818 from hakman/pull_use_channel
kOps: Use alpha channel AMI for main AWS pre-submits
2 parents 79ded6a + b307da8 commit fbc8a6c

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

config/jobs/kubernetes/kops/build_jobs.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,12 @@ def presubmit_test(branch='master',
259259
use_boskos=False):
260260
# pylint: disable=too-many-statements,too-many-branches,too-many-arguments
261261
if cloud == 'aws':
262-
kops_image = distro_images[distro]
263-
kops_ssh_user = distros_ssh_user[distro]
262+
if distro == "channels":
263+
kops_image = None
264+
kops_ssh_user = 'ubuntu'
265+
else:
266+
kops_image = distro_images[distro]
267+
kops_ssh_user = distros_ssh_user[distro]
264268
kops_ssh_key_path = '/etc/aws-ssh/aws-ssh-private'
265269

266270
elif cloud == 'gce':
@@ -1208,7 +1212,7 @@ def generate_presubmits_e2e():
12081212
focus_regex=r'\[Conformance\]|\[NodeConformance\]',
12091213
),
12101214
presubmit_test(
1211-
distro='u2204arm64',
1215+
distro='channels',
12121216
k8s_version='stable',
12131217
kops_channel='alpha',
12141218
name='pull-kops-e2e-k8s-aws-calico',
@@ -1440,6 +1444,7 @@ def generate_presubmits_e2e():
14401444
),
14411445

14421446
presubmit_test(
1447+
distro='channels',
14431448
branch='release-1.26',
14441449
k8s_version='1.26',
14451450
kops_channel='alpha',
@@ -1449,6 +1454,7 @@ def generate_presubmits_e2e():
14491454
always_run=True,
14501455
),
14511456
presubmit_test(
1457+
distro='channels',
14521458
branch='release-1.25',
14531459
k8s_version='1.25',
14541460
kops_channel='alpha',
@@ -1458,6 +1464,7 @@ def generate_presubmits_e2e():
14581464
always_run=True,
14591465
),
14601466
presubmit_test(
1467+
distro='channels',
14611468
branch='release-1.24',
14621469
k8s_version='1.24',
14631470
kops_channel='alpha',
@@ -1476,6 +1483,7 @@ def generate_presubmits_e2e():
14761483
always_run=True,
14771484
),
14781485
presubmit_test(
1486+
distro='channels',
14791487
branch='release-1.22',
14801488
k8s_version='1.22',
14811489
kops_channel='alpha',

config/jobs/kubernetes/kops/kops-presubmits-e2e.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ presubmits:
137137
testgrid-days-of-results: '90'
138138
testgrid-tab-name: e2e-containerd-ci-ha
139139

140-
# {"cloud": "aws", "distro": "u2204arm64", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
140+
# {"cloud": "aws", "distro": "channels", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
141141
- name: pull-kops-e2e-k8s-aws-calico
142142
branches:
143143
- master
@@ -168,7 +168,7 @@ presubmits:
168168
-v 2 \
169169
--up --build --down \
170170
--cloud-provider=aws \
171-
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-arm64-server-20230608' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
171+
--create-args="--channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
172172
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
173173
--kops-binary-path=/home/prow/go/src/k8s.io/kops/.build/dist/linux/amd64/kops \
174174
--test=kops \
@@ -192,7 +192,7 @@ presubmits:
192192
memory: "6Gi"
193193
annotations:
194194
test.kops.k8s.io/cloud: aws
195-
test.kops.k8s.io/distro: u2204arm64
195+
test.kops.k8s.io/distro: channels
196196
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
197197
test.kops.k8s.io/k8s_version: stable
198198
test.kops.k8s.io/kops_channel: alpha
@@ -1702,7 +1702,7 @@ presubmits:
17021702
testgrid-days-of-results: '90'
17031703
testgrid-tab-name: e2e-aws-1-22
17041704

1705-
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.26", "kops_channel": "alpha", "networking": "calico"}
1705+
# {"cloud": "aws", "distro": "channels", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.26", "kops_channel": "alpha", "networking": "calico"}
17061706
- name: pull-kops-e2e-k8s-aws-calico-1-26
17071707
branches:
17081708
- release-1.26
@@ -1733,7 +1733,7 @@ presubmits:
17331733
-v 2 \
17341734
--up --build --down \
17351735
--cloud-provider=aws \
1736-
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230608' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
1736+
--create-args="--channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
17371737
--kubernetes-version=https://dl.k8s.io/release/stable-1.26.txt \
17381738
--kops-binary-path=/home/prow/go/src/k8s.io/kops/.build/dist/linux/amd64/kops \
17391739
--test=kops \
@@ -1757,7 +1757,7 @@ presubmits:
17571757
memory: "6Gi"
17581758
annotations:
17591759
test.kops.k8s.io/cloud: aws
1760-
test.kops.k8s.io/distro: u2204
1760+
test.kops.k8s.io/distro: channels
17611761
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
17621762
test.kops.k8s.io/k8s_version: '1.26'
17631763
test.kops.k8s.io/kops_channel: alpha
@@ -1766,7 +1766,7 @@ presubmits:
17661766
testgrid-days-of-results: '90'
17671767
testgrid-tab-name: e2e-1-26
17681768

1769-
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.25", "kops_channel": "alpha", "networking": "calico"}
1769+
# {"cloud": "aws", "distro": "channels", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.25", "kops_channel": "alpha", "networking": "calico"}
17701770
- name: pull-kops-e2e-k8s-aws-calico-1-25
17711771
branches:
17721772
- release-1.25
@@ -1797,7 +1797,7 @@ presubmits:
17971797
-v 2 \
17981798
--up --build --down \
17991799
--cloud-provider=aws \
1800-
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230608' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
1800+
--create-args="--channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
18011801
--kubernetes-version=https://dl.k8s.io/release/stable-1.25.txt \
18021802
--kops-binary-path=/home/prow/go/src/k8s.io/kops/.build/dist/linux/amd64/kops \
18031803
--test=kops \
@@ -1821,7 +1821,7 @@ presubmits:
18211821
memory: "6Gi"
18221822
annotations:
18231823
test.kops.k8s.io/cloud: aws
1824-
test.kops.k8s.io/distro: u2204
1824+
test.kops.k8s.io/distro: channels
18251825
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
18261826
test.kops.k8s.io/k8s_version: '1.25'
18271827
test.kops.k8s.io/kops_channel: alpha
@@ -1830,7 +1830,7 @@ presubmits:
18301830
testgrid-days-of-results: '90'
18311831
testgrid-tab-name: e2e-1-25
18321832

1833-
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.24", "kops_channel": "alpha", "networking": "calico"}
1833+
# {"cloud": "aws", "distro": "channels", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.24", "kops_channel": "alpha", "networking": "calico"}
18341834
- name: pull-kops-e2e-k8s-aws-calico-1-24
18351835
branches:
18361836
- release-1.24
@@ -1861,7 +1861,7 @@ presubmits:
18611861
-v 2 \
18621862
--up --build --down \
18631863
--cloud-provider=aws \
1864-
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230608' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
1864+
--create-args="--channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
18651865
--kubernetes-version=https://dl.k8s.io/release/stable-1.24.txt \
18661866
--kops-binary-path=/home/prow/go/src/k8s.io/kops/.build/dist/linux/amd64/kops \
18671867
--test=kops \
@@ -1885,7 +1885,7 @@ presubmits:
18851885
memory: "6Gi"
18861886
annotations:
18871887
test.kops.k8s.io/cloud: aws
1888-
test.kops.k8s.io/distro: u2204
1888+
test.kops.k8s.io/distro: channels
18891889
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
18901890
test.kops.k8s.io/k8s_version: '1.24'
18911891
test.kops.k8s.io/kops_channel: alpha
@@ -1960,7 +1960,7 @@ presubmits:
19601960
testgrid-days-of-results: '90'
19611961
testgrid-tab-name: e2e-1-23
19621962

1963-
# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.22", "kops_channel": "alpha", "networking": "calico"}
1963+
# {"cloud": "aws", "distro": "channels", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "1.22", "kops_channel": "alpha", "networking": "calico"}
19641964
- name: pull-kops-e2e-k8s-aws-calico-1-22
19651965
branches:
19661966
- release-1.22
@@ -1993,7 +1993,7 @@ presubmits:
19931993
-v 2 \
19941994
--up --build --down \
19951995
--cloud-provider=aws \
1996-
--create-args="--image='099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20230608' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
1996+
--create-args="--channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
19971997
--kubernetes-version=https://dl.k8s.io/release/stable-1.22.txt \
19981998
--kops-binary-path=/home/prow/go/src/k8s.io/kops/bazel-bin/cmd/kops/linux-amd64/kops \
19991999
--test=kops \
@@ -2017,7 +2017,7 @@ presubmits:
20172017
memory: "6Gi"
20182018
annotations:
20192019
test.kops.k8s.io/cloud: aws
2020-
test.kops.k8s.io/distro: u2204
2020+
test.kops.k8s.io/distro: channels
20212021
test.kops.k8s.io/extra_flags: --discovery-store=s3://k8s-kops-prow/discovery
20222022
test.kops.k8s.io/k8s_version: '1.22'
20232023
test.kops.k8s.io/kops_channel: alpha

0 commit comments

Comments
 (0)