HPA E2E Test: Scale to zero, scale custom CRD

This commit is contained in:
Piotr Nosek
2022-08-16 07:56:05 +00:00
parent d5fdf3135e
commit e252fcc429
4 changed files with 106 additions and 27 deletions

View File

@@ -20,7 +20,7 @@ import (
"fmt"
"time"
autoscalingv1 "k8s.io/api/autoscaling/v1"
autoscalingv2 "k8s.io/api/autoscaling/v2"
"k8s.io/kubernetes/test/e2e/framework"
e2eautoscaling "k8s.io/kubernetes/test/e2e/framework/autoscaling"
"k8s.io/kubernetes/test/e2e/upgrades"
@@ -31,7 +31,7 @@ import (
// HPAUpgradeTest tests that HPA rescales target resource correctly before and after a cluster upgrade.
type HPAUpgradeTest struct {
rc *e2eautoscaling.ResourceConsumer
hpa *autoscalingv1.HorizontalPodAutoscaler
hpa *autoscalingv2.HorizontalPodAutoscaler
}
// Name returns the tracking name of the test.