kubernetes/pkg/controller/podautoscaler/replica_calculator_test.go

type resourceInfo

type metricType

const objectMetric

const objectPerPodMetric

const externalMetric

const externalPerPodMetric

const podMetric

type metricInfo

type replicaCalcTestCase

const testNamespace

const podNamePrefix

const numContainersPerPod

func (tc *replicaCalcTestCase) prepareTestClientSet() *fake.Clientset {}

func (tc *replicaCalcTestCase) prepareTestMetricsClient() *metricsfake.Clientset {}

func (tc *replicaCalcTestCase) prepareTestCMClient(t *testing.T) *cmfake.FakeCustomMetricsClient {}

func (tc *replicaCalcTestCase) prepareTestEMClient(t *testing.T) *emfake.FakeExternalMetricsClient {}

func (tc *replicaCalcTestCase) prepareTestClient(t *testing.T) (*fake.Clientset, *metricsfake.Clientset, *cmfake.FakeCustomMetricsClient, *emfake.FakeExternalMetricsClient) {}

func (tc *replicaCalcTestCase) runTest(t *testing.T) {}

func makePodMetricLevels(containerMetric ...int64) [][]int64 {}

func TestReplicaCalcDisjointResourcesMetrics(t *testing.T) {}

func TestReplicaCalcMissingContainerMetricError(t *testing.T) {}

func TestReplicaCalcScaleUp(t *testing.T) {}

func TestReplicaCalcContainerScaleUp(t *testing.T) {}

func TestReplicaCalcScaleUpUnreadyLessScale(t *testing.T) {}

func TestReplicaCalcScaleUpContainerHotCpuLessScale(t *testing.T) {}

func TestReplicaCalcScaleUpHotCpuLessScale(t *testing.T) {}

func TestReplicaCalcScaleUpUnreadyNoScale(t *testing.T) {}

func TestReplicaCalcScaleHotCpuNoScale(t *testing.T) {}

func TestReplicaCalcScaleUpIgnoresFailedPods(t *testing.T) {}

func TestReplicaCalcScaleUpContainerIgnoresFailedPods(t *testing.T) {}

func TestReplicaCalcScaleUpIgnoresDeletionPods(t *testing.T) {}

func TestReplicaCalcScaleUpContainerIgnoresDeletionPods(t *testing.T) {}

func TestReplicaCalcScaleUpCM(t *testing.T) {}

func TestReplicaCalcScaleUpCMUnreadyHotCpuNoLessScale(t *testing.T) {}

func TestReplicaCalcScaleUpCMUnreadyHotCpuScaleWouldScaleDown(t *testing.T) {}

func TestReplicaCalcScaleUpCMObject(t *testing.T) {}

func TestReplicaCalcScaleUpCMPerPodObject(t *testing.T) {}

func TestReplicaCalcScaleUpCMObjectIgnoresUnreadyPods(t *testing.T) {}

func TestReplicaCalcScaleUpCMExternal(t *testing.T) {}

func TestReplicaCalcScaleUpCMExternalIgnoresUnreadyPods(t *testing.T) {}

func TestReplicaCalcScaleUpCMExternalNoLabels(t *testing.T) {}

func TestReplicaCalcScaleUpPerPodCMExternal(t *testing.T) {}

func TestReplicaCalcScaleDown(t *testing.T) {}

func TestReplicaCalcContainerScaleDown(t *testing.T) {}

func TestReplicaCalcScaleDownCM(t *testing.T) {}

func TestReplicaCalcScaleDownPerPodCMObject(t *testing.T) {}

func TestReplicaCalcScaleDownCMObject(t *testing.T) {}

func TestReplicaCalcScaleDownCMExternal(t *testing.T) {}

func TestReplicaCalcScaleDownPerPodCMExternal(t *testing.T) {}

func TestReplicaCalcScaleDownExcludeUnreadyPods(t *testing.T) {}

func TestReplicaCalcScaleDownContainerExcludeUnreadyPods(t *testing.T) {}

func TestReplicaCalcScaleDownExcludeUnscheduledPods(t *testing.T) {}

func TestReplicaCalcScaleDownContainerExcludeUnscheduledPods(t *testing.T) {}

func TestReplicaCalcScaleDownIgnoreHotCpuPods(t *testing.T) {}

func TestReplicaCalcScaleDownContainerIgnoreHotCpuPods(t *testing.T) {}

func TestReplicaCalcScaleDownIgnoresFailedPods(t *testing.T) {}

func TestReplicaCalcScaleDownContainerIgnoresFailedPods(t *testing.T) {}

func TestReplicaCalcScaleDownIgnoresDeletionPods(t *testing.T) {}

// Regression test for https://github.com/kubernetes/kubernetes/issues/83561
func TestReplicaCalcScaleDownIgnoresDeletionPods_StillRunning(t *testing.T) {}

func TestReplicaCalcTolerance(t *testing.T) {}

func TestReplicaCalcToleranceCM(t *testing.T) {}

func TestReplicaCalcToleranceCMObject(t *testing.T) {}

func TestReplicaCalcTolerancePerPodCMObject(t *testing.T) {}

func TestReplicaCalcToleranceCMExternal(t *testing.T) {}

func TestReplicaCalcTolerancePerPodCMExternal(t *testing.T) {}

func TestReplicaCalcSuperfluousMetrics(t *testing.T) {}

func TestReplicaCalcMissingMetrics(t *testing.T) {}

func TestReplicaCalcEmptyMetrics(t *testing.T) {}

func TestReplicaCalcEmptyCPURequest(t *testing.T) {}

func TestPlainMetricReplicaCalcMissingMetricsNoChangeEq(t *testing.T) {}

func TestReplicaCalcMissingMetricsNoChangeEq(t *testing.T) {}

func TestReplicaCalcMissingMetricsNoChangeGt(t *testing.T) {}

func TestReplicaCalcMissingMetricsNoChangeLt(t *testing.T) {}

func TestReplicaCalcMissingMetricsUnreadyChange(t *testing.T) {}

func TestReplicaCalcMissingMetricsHotCpuNoChange(t *testing.T) {}

func TestReplicaCalcMissingMetricsUnreadyScaleUp(t *testing.T) {}

func TestReplicaCalcMissingMetricsHotCpuScaleUp(t *testing.T) {}

func TestReplicaCalcMissingMetricsUnreadyScaleDown(t *testing.T) {}

func TestReplicaCalcMissingMetricsScaleDownTargetOver100(t *testing.T) {}

func TestReplicaCalcDuringRollingUpdateWithMaxSurge(t *testing.T) {}

func TestReplicaCalcDuringRollingUpdateWithMaxSurgeCM(t *testing.T) {}

// TestComputedToleranceAlgImplementation is a regression test which
// back-calculates a minimal percentage for downscaling based on a small percentage
// increase in pod utilization which is calibrated against the tolerance value.
func TestReplicaCalcComputedToleranceAlgImplementation(t *testing.T) {}

func TestGroupPods(t *testing.T) {}

func TestCalculatePodRequests(t *testing.T) {}