kubernetes/pkg/controller/volume/pvcprotection/pvc_protection_controller_test.go

type reaction

const defaultNS

const namespace2

const defaultPVCName

const defaultPodName

const defaultNodeName

const defaultUID

func pod() *v1.Pod {}

func podWithConfig(name string, namespace string) *v1.Pod {}

func unscheduled(pod *v1.Pod) *v1.Pod {}

func withPVC(pvcName string, pod *v1.Pod) *v1.Pod {}

func withEmptyDir(pod *v1.Pod) *v1.Pod {}

func withStatus(phase v1.PodPhase, pod *v1.Pod) *v1.Pod {}

func withUID(uid types.UID, pod *v1.Pod) *v1.Pod {}

func pvc() *v1.PersistentVolumeClaim {}

func pvcWithConfig(name string, namespace string) *v1.PersistentVolumeClaim {}

func withProtectionFinalizer(pvc *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim {}

func deleted(pvc *v1.PersistentVolumeClaim) *v1.PersistentVolumeClaim {}

func generateUpdateErrorFunc(t *testing.T, failures int) clienttesting.ReactionFunc {}

func generatePodListErrorFunc(t *testing.T, failures int) clienttesting.ReactionFunc {}

func TestPVCProtectionController(t *testing.T) {}