kubernetes/plugin/pkg/admission/limitranger/admission_test.go

func getComputeResourceList(cpu, memory string) api.ResourceList {}

func getStorageResourceList(storage string) api.ResourceList {}

func getResourceRequirements(requests, limits api.ResourceList) api.ResourceRequirements {}

func getVolumeResourceRequirements(requests, limits api.ResourceList) api.VolumeResourceRequirements {}

// createLimitRange creates a limit range with the specified data
func createLimitRange(limitType api.LimitType, min, max, defaultLimit, defaultRequest, maxLimitRequestRatio api.ResourceList) corev1.LimitRange {}

func validLimitRange() corev1.LimitRange {}

func validLimitRangeNoDefaults() corev1.LimitRange {}

func validPod(name string, numContainers int, resources api.ResourceRequirements) api.Pod {}

func validPodInit(pod api.Pod, resources ...api.ResourceRequirements) api.Pod {}

func TestDefaultContainerResourceRequirements(t *testing.T) {}

func verifyAnnotation(t *testing.T, pod *api.Pod, expected string) {}

func expectNoAnnotation(t *testing.T, pod *api.Pod) {}

func TestMergePodResourceRequirements(t *testing.T) {}

func TestPodLimitFunc(t *testing.T) {}

func withRestartableInitContainer(requests, limits api.ResourceList, pod api.Pod) api.Pod {}

func getLocalStorageResourceList(ephemeralStorage string) api.ResourceList {}

func TestPodLimitFuncApplyDefault(t *testing.T) {}

func TestLimitRangerIgnoresSubresource(t *testing.T) {}

func TestLimitRangerAdmitPod(t *testing.T) {}

// newMockClientForTest creates a mock client that returns a client configured for the specified list of limit ranges
func newMockClientForTest(limitRanges []corev1.LimitRange) *fake.Clientset {}

// newHandlerForTest returns a handler configured for testing.
func newHandlerForTest(c clientset.Interface) (*LimitRanger, informers.SharedInformerFactory, error) {}

func validPersistentVolumeClaim(name string, resources api.VolumeResourceRequirements) api.PersistentVolumeClaim {}

func TestPersistentVolumeClaimLimitFunc(t *testing.T) {}

// TestLimitRanger_GetLimitRangesFixed22422 Fixed Admission controllers can cause unnecessary significant load on apiserver #22422
func TestLimitRanger_GetLimitRangesFixed22422(t *testing.T) {}