Skip to content

Commit 60d3be2

Browse files
committed
fix kops job generator
1 parent 069992a commit 60d3be2

File tree

11 files changed

+108129
-8061
lines changed

11 files changed

+108129
-8061
lines changed

config/jobs/kubernetes/kops/build_jobs.py

Lines changed: 61 additions & 152 deletions
Large diffs are not rendered by default.

config/jobs/kubernetes/kops/build_vars.py

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

2020
image = "gcr.io/k8s-staging-test-infra/kubekins-e2e:v20251021-e2c2c9806f-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,10 +27,10 @@
3727
"cos125arm64",
3828
"cosdev",
3929
"cosdevarm64",
40-
"deb12",
41-
"deb12arm64",
42-
"deb13",
43-
"deb13arm64",
30+
"debian12",
31+
"debian12arm64",
32+
"debian13",
33+
"debian13arm64",
4434
"u2204",
4535
"u2404",
4636
"u2404arm64",
@@ -49,33 +39,7 @@
4939
]
5040

5141
# 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 = [
42+
aws_distro_options = [
7943
"debian11",
8044
"debian12",
8145
"debian13",
@@ -94,20 +58,48 @@
9458
"flatcar",
9559
]
9660

61+
k8s_versions = [
62+
"1.32",
63+
"1.33",
64+
"1.34",
65+
]
66+
67+
# kOps versions tested
68+
kops_versions = [
69+
None, # maps to latest
70+
"1.32",
71+
"1.33",
72+
"1.34",
73+
]
74+
9775
# Network plugins for periodic network plugin tests
9876
network_plugins_periodics = {
9977
"plugins": [
10078
"amazon-vpc",
10179
"calico",
80+
"gce",
10281
"cilium",
10382
"cilium-etcd",
10483
"cilium-eni",
10584
"flannel",
10685
"kindnet",
10786
"kopeio",
87+
"kubenet",
10888
"kuberouter",
10989
],
110-
"supports_gce": {"calico", "cilium", "kindnet"},
90+
"supports_aws": [
91+
"amazon-vpc",
92+
"calico",
93+
"cilium",
94+
"cilium-etcd",
95+
"cilium-eni",
96+
"flannel",
97+
"kindnet",
98+
"kopeio",
99+
"kubenet",
100+
"kuberouter",
101+
],
102+
"supports_gce": {"kubenet", "calico", "cilium", "kindnet", "gce"},
111103
"supports_azure": {"cilium"},
112104
}
113105

@@ -133,6 +125,9 @@
133125
kops29 = "v1.29.2"
134126
kops30 = "v1.30.3"
135127
kops31 = "v1.31.0"
128+
kops32 = "v1.32.0"
129+
kops33 = "v1.33.0"
130+
kops34 = "v1.34.0"
136131

137132
upgrade_versions_list = [
138133
# kops k8s kops k8s

config/jobs/kubernetes/kops/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def latest_gce_image(project, family, arch="X86_64"):
224224
"cosdevarm64": latest_gce_image("cos-cloud", "cos-arm64-dev", "ARM64"),
225225
}
226226

227-
distro_images = {
227+
aws_distro_images = {
228228
'al2023': latest_aws_image('137112412989', 'al2023-ami-2*-kernel-6.12-x86_64'),
229229
'al2023arm64': latest_aws_image('137112412989', 'al2023-ami-2*-kernel-6.12-arm64', 'arm64'),
230230
'amzn2': latest_aws_image('137112412989', 'amzn2-ami-kernel-5.10-hvm-*-x86_64-gp2'),
@@ -245,7 +245,7 @@ def latest_gce_image(project, family, arch="X86_64"):
245245
'u2510arm64': latest_aws_image('099720109477', 'ubuntu/images/hvm-ssd-gp3/ubuntu-questing-25.10-arm64-server-*', 'arm64'), # pylint: disable=line-too-long
246246
}
247247

248-
distros_ssh_user = {
248+
aws_distros_ssh_user = {
249249
'al2023': 'ec2-user',
250250
'al2023arm64': 'ec2-user',
251251
'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)