kubernetes/pkg/controller/resourceclaim/controller_test.go

var testPodName

var testNamespace

var testPodUID

var otherNamespace

var podResourceClaimName

var templateName

var className

var nodeName

var testPod

var testPodWithResource

var otherTestPod

var testClaim

var testClaimAllocated

var testClaimReserved

var testClaimReservedTwice

var generatedTestClaim

var generatedTestClaimAllocated

var generatedTestClaimReserved

var conflictingClaim

var otherNamespaceClaim

var template

var testPodWithNodeName

func init() {}

func TestSyncHandler(t *testing.T) {}

func makeClaim(name, namespace, classname string, owner *metav1.OwnerReference) *resourceapi.ResourceClaim {}

func makeGeneratedClaim(podClaimName, generateName, namespace, classname string, createCounter int, owner *metav1.OwnerReference) *resourceapi.ResourceClaim {}

func allocateClaim(claim *resourceapi.ResourceClaim) *resourceapi.ResourceClaim {}

func structuredParameters(claim *resourceapi.ResourceClaim) *resourceapi.ResourceClaim {}

func reserveClaim(claim *resourceapi.ResourceClaim, pod *v1.Pod) *resourceapi.ResourceClaim {}

func makePodResourceClaim(name, templateName string) *v1.PodResourceClaim {}

func makePod(name, namespace string, uid types.UID, podClaims ...v1.PodResourceClaim) *v1.Pod {}

func makeTemplate(name, namespace, classname string) *resourceapi.ResourceClaimTemplate {}

func podKey(pod *v1.Pod) string {}

func claimKey(claim *resourceapi.ResourceClaim) string {}

func makeOwnerReference(pod *v1.Pod, isController bool) *metav1.OwnerReference {}

func normalizeClaims(claims []resourceapi.ResourceClaim) []resourceapi.ResourceClaim {}

func createTestClient(objects ...runtime.Object) *fake.Clientset {}

// createResourceClaimReactor implements the logic required for the GenerateName field to work when using
// the fake client. Add it with client.PrependReactor to your fake client.
func createResourceClaimReactor() func(action k8stesting.Action) (handled bool, ret runtime.Object, err error) {}

type expectedMetrics

func expectMetrics(t *testing.T, em expectedMetrics) {}

func handleErr(t *testing.T, err error, metricName string) {}

func setupMetrics() {}