Skip to content

Commit 4ad1e2d

Browse files
authored
Merge pull request #35656 from justinsb/add_kops_scenario_test_for_clusterapi
kOps: add test for clusterapi
2 parents 7ff1c3d + 496355e commit 4ad1e2d

File tree

3 files changed

+79
-3
lines changed

3 files changed

+79
-3
lines changed

config/jobs/kubernetes/kops/build_jobs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,6 +2403,14 @@ def generate_presubmits_e2e():
24032403
test_timeout_minutes=70,
24042404
optional=True,
24052405
),
2406+
2407+
presubmit_test(
2408+
name="pull-kops-scenario-clusterapi-gcp",
2409+
cloud="gce",
2410+
k8s_version="stable",
2411+
scenario="clusterapi",
2412+
optional=True
2413+
),
24062414
]
24072415

24082416
return jobs

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

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test jobs generated by build_jobs.py (do not manually edit)
2-
# 40 jobs
2+
# 41 jobs
33
presubmits:
44
kubernetes/kops:
55

@@ -851,6 +851,9 @@ presubmits:
851851
requests:
852852
cpu: "6"
853853
memory: "16Gi"
854+
limits:
855+
cpu: "6"
856+
memory: "16Gi"
854857
annotations:
855858
test.kops.k8s.io/cloud: aws
856859
test.kops.k8s.io/distro: u2204
@@ -907,6 +910,9 @@ presubmits:
907910
requests:
908911
cpu: "6"
909912
memory: "16Gi"
913+
limits:
914+
cpu: "6"
915+
memory: "16Gi"
910916
annotations:
911917
test.kops.k8s.io/cloud: aws
912918
test.kops.k8s.io/distro: u2404
@@ -963,6 +969,9 @@ presubmits:
963969
requests:
964970
cpu: "6"
965971
memory: "16Gi"
972+
limits:
973+
cpu: "6"
974+
memory: "16Gi"
966975
annotations:
967976
test.kops.k8s.io/cloud: aws
968977
test.kops.k8s.io/distro: u2404
@@ -2073,6 +2082,9 @@ presubmits:
20732082
requests:
20742083
cpu: "6"
20752084
memory: "16Gi"
2085+
limits:
2086+
cpu: "6"
2087+
memory: "16Gi"
20762088
annotations:
20772089
test.kops.k8s.io/cloud: aws
20782090
test.kops.k8s.io/distro: u2404
@@ -2280,6 +2292,9 @@ presubmits:
22802292
requests:
22812293
cpu: "6"
22822294
memory: "16Gi"
2295+
limits:
2296+
cpu: "6"
2297+
memory: "16Gi"
22832298
annotations:
22842299
test.kops.k8s.io/cloud: aws
22852300
test.kops.k8s.io/distro: u2204
@@ -2335,6 +2350,9 @@ presubmits:
23352350
requests:
23362351
cpu: "6"
23372352
memory: "16Gi"
2353+
limits:
2354+
cpu: "6"
2355+
memory: "16Gi"
23382356
annotations:
23392357
test.kops.k8s.io/cloud: aws
23402358
test.kops.k8s.io/distro: u2404
@@ -2621,3 +2639,55 @@ presubmits:
26212639
testgrid-dashboards: kops-presubmits, presubmits-kops, sig-cluster-lifecycle-kops
26222640
testgrid-days-of-results: '90'
26232641
testgrid-tab-name: pull-kops-kubernetes-e2e-cos-gce-slow
2642+
2643+
# {"cloud": "gce", "distro": "u2404", "k8s_version": "stable", "kops_channel": "alpha", "networking": "cilium"}
2644+
- name: pull-kops-scenario-clusterapi-gcp
2645+
cluster: k8s-infra-prow-build
2646+
branches:
2647+
- master
2648+
always_run: false
2649+
optional: true
2650+
skip_report: false
2651+
labels:
2652+
preset-k8s-ssh: "true"
2653+
max_concurrency: 1
2654+
decorate: true
2655+
decoration_config:
2656+
timeout: 90m
2657+
path_alias: k8s.io/kops
2658+
spec:
2659+
serviceAccountName: k8s-kops-test
2660+
containers:
2661+
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20250925-95b5a2c7a5-master
2662+
imagePullPolicy: Always
2663+
command:
2664+
- runner.sh
2665+
args:
2666+
- ./tests/e2e/scenarios/clusterapi/run-test.sh
2667+
securityContext:
2668+
privileged: true
2669+
env:
2670+
- name: KUBE_SSH_KEY_PATH
2671+
value: /etc/ssh-key-secret/ssh-private
2672+
- name: KUBE_SSH_USER
2673+
value: prow
2674+
- name: GOPATH
2675+
value: /home/prow/go
2676+
- name: CLOUD_PROVIDER
2677+
value: "gce"
2678+
resources:
2679+
requests:
2680+
cpu: "6"
2681+
memory: "16Gi"
2682+
limits:
2683+
cpu: "6"
2684+
memory: "16Gi"
2685+
annotations:
2686+
test.kops.k8s.io/cloud: gce
2687+
test.kops.k8s.io/distro: u2404
2688+
test.kops.k8s.io/k8s_version: stable
2689+
test.kops.k8s.io/kops_channel: alpha
2690+
test.kops.k8s.io/networking: cilium
2691+
testgrid-dashboards: kops-presubmits, presubmits-kops, sig-cluster-lifecycle-kops
2692+
testgrid-days-of-results: '90'
2693+
testgrid-tab-name: pull-kops-scenario-clusterapi-gcp

config/jobs/kubernetes/kops/templates/presubmit-scenario.yaml.jinja

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@
6565
requests:
6666
cpu: "6"
6767
memory: "16Gi"
68-
{%- if scenario == 'scalability' %}
6968
limits:
7069
cpu: "6"
7170
memory: "16Gi"
72-
{%- endif %}

0 commit comments

Comments
 (0)