Skip to content

Commit f749a25

Browse files
authored
Merge pull request #28636 from pbetkier/hpa-e2e-pr-checks
Add autoscaling hpa e2e tests to presubmit checks
2 parents c2a0a63 + e08091e commit f749a25

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

config/jobs/kubernetes/sig-autoscaling/sig-autoscaling-presubmits.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,66 @@ presubmits:
4747
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master
4848
securityContext:
4949
privileged: true
50+
51+
- name: pull-kubernetes-e2e-autoscaling-hpa-cpu
52+
annotations:
53+
testgrid-dashboards: sig-autoscaling-hpa
54+
testgrid-tab-name: gci-gce-autoscaling-hpa-cpu-pull
55+
# TODO: set `always_run: true` once config confirmed to be correct
56+
always_run: false
57+
# TODO: set `optional: false` once tests not flaky
58+
optional: true
59+
run_if_changed: '^(pkg\/controller\/podautoscaler\/|test\/e2e\/autoscaling\/horizontal_pod_autoscaling|test\/e2e\/framework\/autoscaling\/)'
60+
labels:
61+
preset-service-account: "true"
62+
preset-k8s-ssh: "true"
63+
spec:
64+
containers:
65+
- args:
66+
- --bare
67+
- --timeout=260
68+
- --scenario=kubernetes_e2e
69+
- --
70+
- --check-leaked-resources
71+
- --provider=gce
72+
- --gcp-zone=us-west1-b
73+
- --gcp-node-image=gci
74+
# Enable HPAContainerMetrics. Required for container metrics tests.
75+
- --env=KUBE_FEATURE_GATES=HPAContainerMetrics=true
76+
- --extract=ci/latest
77+
- --timeout=240m
78+
- --test_args=--ginkgo.focus=\[Feature:HPA\]
79+
--minStartupPods=8
80+
- --ginkgo-parallel=1
81+
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master
82+
83+
- name: pull-kubernetes-e2e-autoscaling-hpa-cm
84+
annotations:
85+
testgrid-dashboards: sig-autoscaling-hpa
86+
testgrid-tab-name: gci-gce-autoscaling-hpa-cm-pull
87+
# TODO: set `always_run: true` once config confirmed to be correct
88+
always_run: false
89+
# TODO: set `optional: false` once tests not flaky
90+
optional: true
91+
run_if_changed: '^(pkg\/controller\/podautoscaler\/|test\/e2e\/autoscaling\/custom_metrics_stackdriver_autoscaling.go$)'
92+
labels:
93+
preset-service-account: "true"
94+
preset-k8s-ssh: "true"
95+
spec:
96+
containers:
97+
- args:
98+
- --timeout=350
99+
- --bare
100+
- --scenario=kubernetes_e2e
101+
- --
102+
- --cluster=hpa
103+
- --extract=ci/latest
104+
- --gcp-node-image=gci
105+
- --gcp-project=k8s-jkns-gci-autoscaling
106+
- --gcp-zone=us-west1-b
107+
- --provider=gce
108+
# Enable HPAContainerMetrics and HPAScaleToZero. Required for container metrics and scale to zero tests.
109+
- --env=KUBE_FEATURE_GATES=HPAContainerMetrics=true,HPAScaleToZero=true
110+
- --test_args=--ginkgo.focus=\[Feature:CustomMetricsAutoscaling\] --ginkgo.skip=\[Flaky\] --minStartupPods=8
111+
- --timeout=300m
112+
image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master

0 commit comments

Comments
 (0)