Skip to content

Commit 15869fb

Browse files
committed
fix kops job generator
1 parent 02e1779 commit 15869fb

13 files changed

+115334
-8207
lines changed

config/jobs/kubernetes/kops/build_jobs.py

Lines changed: 107 additions & 159 deletions
Large diffs are not rendered by default.

config/jobs/kubernetes/kops/build_vars.py

Lines changed: 45 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919

2020
image = "gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251029-79c2132152-master"
2121

22-
# Grid Definitions
23-
networking_options = [
24-
"kubenet",
25-
"calico",
26-
"cilium",
27-
"cilium-etcd",
28-
"cilium-eni",
29-
"kopeio",
30-
]
31-
3222
# GCE distributions
3323
gce_distro_options = [
3424
"cos121",
@@ -37,45 +27,21 @@
3727
"cos125arm64",
3828
"cosdev",
3929
"cosdevarm64",
40-
"deb12",
41-
"deb12arm64",
42-
"deb13",
43-
"deb13arm64",
44-
"u2204",
45-
"u2404",
46-
"u2404arm64",
47-
"umini2404",
48-
"umini2404arm64",
30+
"debian12",
31+
"debian12arm64",
32+
"debian13",
33+
"debian13arm64",
34+
"ubuntu2204",
35+
"ubuntu2404",
36+
"ubuntu2404arm64",
37+
"ubuntuminimal2404",
38+
"ubuntuminimal2404arm64",
39+
"rocky10",
40+
"rocky10arm64",
4941
]
5042

5143
# AWS distributions
52-
distro_options = [
53-
"al2023",
54-
"deb12",
55-
"deb13",
56-
"flatcar",
57-
"rhel8",
58-
"u2204",
59-
"u2404",
60-
]
61-
62-
k8s_versions = [
63-
"1.31",
64-
"1.32",
65-
"1.33",
66-
"1.34",
67-
]
68-
69-
# kOps versions tested
70-
kops_versions = [
71-
None, # maps to latest
72-
"1.30",
73-
"1.31",
74-
"1.32",
75-
]
76-
77-
# Distros for periodic and presubmit distro tests
78-
distros = [
44+
aws_distro_options = [
7945
"debian11",
8046
"debian12",
8147
"debian13",
@@ -94,21 +60,49 @@
9460
"flatcar",
9561
]
9662

63+
k8s_versions = [
64+
"1.32",
65+
"1.33",
66+
"1.34",
67+
]
68+
69+
# kOps versions tested
70+
kops_versions = [
71+
None, # maps to latest
72+
"1.32",
73+
"1.33",
74+
"1.34",
75+
]
76+
9777
# Network plugins for periodic network plugin tests
9878
network_plugins_periodics = {
9979
"plugins": [
10080
"amazon-vpc",
10181
"calico",
82+
"gce",
10283
"cilium",
10384
"cilium-etcd",
10485
"cilium-eni",
10586
"flannel",
10687
"kindnet",
10788
"kopeio",
89+
"kubenet",
10890
"kuberouter",
10991
],
110-
"supports_gce": {"calico", "cilium", "kindnet"},
111-
"supports_azure": {"cilium"},
92+
"supports_aws": [
93+
"amazon-vpc",
94+
"calico",
95+
"cilium",
96+
"cilium-etcd",
97+
"cilium-eni",
98+
"flannel",
99+
"kindnet",
100+
"kopeio",
101+
"kubenet",
102+
"kuberouter",
103+
],
104+
"supports_gce": ["kubenet", "calico", "cilium", "kindnet", "gce"],
105+
"supports_azure": ["cilium"],
112106
}
113107

114108
# Network plugins for presubmit network plugin tests
@@ -133,6 +127,9 @@
133127
kops29 = "v1.29.2"
134128
kops30 = "v1.30.3"
135129
kops31 = "v1.31.0"
130+
kops32 = "v1.32.0"
131+
kops33 = "v1.33.0"
132+
kops34 = "v1.34.0"
136133

137134
upgrade_versions_list = [
138135
# kops k8s kops k8s

config/jobs/kubernetes/kops/helpers.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def create_args(kops_channel, networking, extra_flags, kops_image):
112112
args = f"--image='{kops_image}' {args}"
113113
return args.strip()
114114

115+
def distro_shortener(distro):
116+
return distro.replace('ubuntuminimal', 'umini').replace('ubuntu', 'u').replace('debian', 'deb').replace('amazonlinux', 'amzn')
117+
115118
# The pin file contains a list of key=value pairs, that holds images we want to pin.
116119
# This enables us to use the latest image without fetching them from AWS every time.
117120
def pinned_file():
@@ -222,9 +225,11 @@ def latest_gce_image(project, family, arch="X86_64"):
222225
"cos125arm64": latest_gce_image("cos-cloud", "cos-arm64-125-lts", "ARM64"),
223226
"cosdev": latest_gce_image("cos-cloud", "cos-dev"),
224227
"cosdevarm64": latest_gce_image("cos-cloud", "cos-arm64-dev", "ARM64"),
228+
"rocky10": latest_gce_image("rocky-linux-cloud", "rocky-linux-10-optimized-gcp"),
229+
"rocky10arm64": latest_gce_image("rocky-linux-cloud", "rocky-linux-10-optimized-gcp-arm64", "ARM64"),
225230
}
226231

227-
distro_images = {
232+
aws_distro_images = {
228233
'al2023': latest_aws_image('137112412989', 'al2023-ami-2*-kernel-6.12-x86_64'),
229234
'al2023arm64': latest_aws_image('137112412989', 'al2023-ami-2*-kernel-6.12-arm64', 'arm64'),
230235
'amzn2': latest_aws_image('137112412989', 'amzn2-ami-kernel-5.10-hvm-*-x86_64-gp2'),
@@ -245,7 +250,7 @@ def latest_gce_image(project, family, arch="X86_64"):
245250
'u2510arm64': latest_aws_image('099720109477', 'ubuntu/images/hvm-ssd-gp3/ubuntu-questing-25.10-arm64-server-*', 'arm64'), # pylint: disable=line-too-long
246251
}
247252

248-
distros_ssh_user = {
253+
aws_distros_ssh_user = {
249254
'al2023': 'ec2-user',
250255
'al2023arm64': 'ec2-user',
251256
'amzn2': 'ec2-user',

config/jobs/kubernetes/kops/kops-periodics-distros.yaml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
periodics:
44

55
# {"cloud": "aws", "distro": "deb11", "extra_flags": "--set=cluster.spec.containerd.version=1.7.28 --set=cluster.spec.containerd.runc.version=1.3.0", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
6-
- name: e2e-kops-aws-distro-debian11
7-
cron: '42 7-23/8 * * *'
6+
- name: e2e-kops-aws-distro-deb11
7+
cron: '11 4-23/8 * * *'
88
labels:
99
preset-service-account: "true"
1010
preset-aws-ssh: "true"
@@ -64,11 +64,11 @@ periodics:
6464
test.kops.k8s.io/networking: cilium
6565
testgrid-dashboards: kops-distro-deb11, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
6666
testgrid-days-of-results: '90'
67-
testgrid-tab-name: kops-aws-distro-debian11
67+
testgrid-tab-name: kops-aws-distro-deb11
6868

6969
# {"cloud": "aws", "distro": "deb12", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
70-
- name: e2e-kops-aws-distro-debian12
71-
cron: '8 5-23/8 * * *'
70+
- name: e2e-kops-aws-distro-deb12
71+
cron: '21 6-23/8 * * *'
7272
labels:
7373
preset-service-account: "true"
7474
preset-aws-ssh: "true"
@@ -127,11 +127,11 @@ periodics:
127127
test.kops.k8s.io/networking: cilium
128128
testgrid-dashboards: kops-distro-deb12, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
129129
testgrid-days-of-results: '90'
130-
testgrid-tab-name: kops-aws-distro-debian12
130+
testgrid-tab-name: kops-aws-distro-deb12
131131

132132
# {"cloud": "aws", "distro": "deb13", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
133-
- name: e2e-kops-aws-distro-debian13
134-
cron: '6 3-23/8 * * *'
133+
- name: e2e-kops-aws-distro-deb13
134+
cron: '39 0-23/8 * * *'
135135
labels:
136136
preset-service-account: "true"
137137
preset-aws-ssh: "true"
@@ -190,11 +190,11 @@ periodics:
190190
test.kops.k8s.io/networking: cilium
191191
testgrid-dashboards: kops-distro-deb13, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
192192
testgrid-days-of-results: '90'
193-
testgrid-tab-name: kops-aws-distro-debian13
193+
testgrid-tab-name: kops-aws-distro-deb13
194194

195195
# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
196-
- name: e2e-kops-aws-distro-ubuntu2204
197-
cron: '34 4-23/8 * * *'
196+
- name: e2e-kops-aws-distro-u2204
197+
cron: '28 3-23/8 * * *'
198198
labels:
199199
preset-service-account: "true"
200200
preset-aws-ssh: "true"
@@ -253,11 +253,11 @@ periodics:
253253
test.kops.k8s.io/networking: cilium
254254
testgrid-dashboards: kops-distro-u2204, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
255255
testgrid-days-of-results: '90'
256-
testgrid-tab-name: kops-aws-distro-ubuntu2204
256+
testgrid-tab-name: kops-aws-distro-u2204
257257

258258
# {"cloud": "aws", "distro": "u2204arm64", "extra_flags": "--zones=eu-west-1a --node-size=m6g.large --master-size=m6g.large", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
259-
- name: e2e-kops-aws-distro-ubuntu2204arm64
260-
cron: '36 3-23/8 * * *'
259+
- name: e2e-kops-aws-distro-u2204arm64
260+
cron: '22 4-23/8 * * *'
261261
labels:
262262
preset-service-account: "true"
263263
preset-aws-ssh: "true"
@@ -317,11 +317,11 @@ periodics:
317317
test.kops.k8s.io/networking: cilium
318318
testgrid-dashboards: kops-distro-u2204, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
319319
testgrid-days-of-results: '90'
320-
testgrid-tab-name: kops-aws-distro-ubuntu2204arm64
320+
testgrid-tab-name: kops-aws-distro-u2204arm64
321321

322322
# {"cloud": "aws", "distro": "u2404", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
323-
- name: e2e-kops-aws-distro-ubuntu2404
324-
cron: '28 6-23/8 * * *'
323+
- name: e2e-kops-aws-distro-u2404
324+
cron: '46 1-23/8 * * *'
325325
labels:
326326
preset-service-account: "true"
327327
preset-aws-ssh: "true"
@@ -380,11 +380,11 @@ periodics:
380380
test.kops.k8s.io/networking: cilium
381381
testgrid-dashboards: kops-distro-u2404, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
382382
testgrid-days-of-results: '90'
383-
testgrid-tab-name: kops-aws-distro-ubuntu2404
383+
testgrid-tab-name: kops-aws-distro-u2404
384384

385385
# {"cloud": "aws", "distro": "u2404arm64", "extra_flags": "--zones=eu-west-1a --node-size=m6g.large --master-size=m6g.large", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
386-
- name: e2e-kops-aws-distro-ubuntu2404arm64
387-
cron: '59 4-23/8 * * *'
386+
- name: e2e-kops-aws-distro-u2404arm64
387+
cron: '41 3-23/8 * * *'
388388
labels:
389389
preset-service-account: "true"
390390
preset-aws-ssh: "true"
@@ -444,11 +444,11 @@ periodics:
444444
test.kops.k8s.io/networking: cilium
445445
testgrid-dashboards: kops-distro-u2404, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
446446
testgrid-days-of-results: '90'
447-
testgrid-tab-name: kops-aws-distro-ubuntu2404arm64
447+
testgrid-tab-name: kops-aws-distro-u2404arm64
448448

449449
# {"cloud": "aws", "distro": "u2510", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
450-
- name: e2e-kops-aws-distro-ubuntu2510
451-
cron: '23 1-23/8 * * *'
450+
- name: e2e-kops-aws-distro-u2510
451+
cron: '21 6-23/8 * * *'
452452
labels:
453453
preset-service-account: "true"
454454
preset-aws-ssh: "true"
@@ -507,11 +507,11 @@ periodics:
507507
test.kops.k8s.io/networking: cilium
508508
testgrid-dashboards: kops-distro-u2510, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
509509
testgrid-days-of-results: '90'
510-
testgrid-tab-name: kops-aws-distro-ubuntu2510
510+
testgrid-tab-name: kops-aws-distro-u2510
511511

512512
# {"cloud": "aws", "distro": "u2510arm64", "extra_flags": "--zones=eu-west-1a --node-size=m6g.large --master-size=m6g.large", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
513-
- name: e2e-kops-aws-distro-ubuntu2510arm64
514-
cron: '31 0-23/8 * * *'
513+
- name: e2e-kops-aws-distro-u2510arm64
514+
cron: '5 7-23/8 * * *'
515515
labels:
516516
preset-service-account: "true"
517517
preset-aws-ssh: "true"
@@ -571,11 +571,11 @@ periodics:
571571
test.kops.k8s.io/networking: cilium
572572
testgrid-dashboards: kops-distro-u2510, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
573573
testgrid-days-of-results: '90'
574-
testgrid-tab-name: kops-aws-distro-ubuntu2510arm64
574+
testgrid-tab-name: kops-aws-distro-u2510arm64
575575

576576
# {"cloud": "aws", "distro": "amzn2", "extra_flags": "--set=cluster.spec.containerd.version=1.7.28 --set=cluster.spec.containerd.runc.version=1.3.0", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
577-
- name: e2e-kops-aws-distro-amazonlinux2
578-
cron: '59 1-23/8 * * *'
577+
- name: e2e-kops-aws-distro-amzn2
578+
cron: '53 2-23/8 * * *'
579579
labels:
580580
preset-service-account: "true"
581581
preset-aws-ssh: "true"
@@ -635,7 +635,7 @@ periodics:
635635
test.kops.k8s.io/networking: cilium
636636
testgrid-dashboards: kops-distro-amzn2, kops-distros, kops-k8s-stable, kops-latest, sig-cluster-lifecycle-kops
637637
testgrid-days-of-results: '90'
638-
testgrid-tab-name: kops-aws-distro-amazonlinux2
638+
testgrid-tab-name: kops-aws-distro-amzn2
639639

640640
# {"cloud": "aws", "distro": "al2023", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
641641
- name: e2e-kops-aws-distro-al2023

0 commit comments

Comments
 (0)