HPAUpgradeTest tests that HPA rescales target resource correctly before and after a cluster upgrade.
type HPAUpgradeTest struct {
// contains filtered or unexported fields
}
func (HPAUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *HPAUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates a resource consumer and an HPA object that autoscales the consumer.
func (t *HPAUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *HPAUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for upgrade to complete and verifies if HPA works correctly.