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 { … }
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) { … }
func newMockClientForTest(limitRanges []corev1.LimitRange) *fake.Clientset { … }
func newHandlerForTest(c clientset.Interface) (*LimitRanger, informers.SharedInformerFactory, error) { … }
func validPersistentVolumeClaim(name string, resources api.VolumeResourceRequirements) api.PersistentVolumeClaim { … }
func TestPersistentVolumeClaimLimitFunc(t *testing.T) { … }
func TestLimitRanger_GetLimitRangesFixed22422(t *testing.T) { … }