var _ … // createAndVerifyStatefulDeployment creates: // i) a pvc using the provided storage class // ii) creates a deployment with replica count 1 using the created pvc // iii) finally verifies if the pod is running and ready and returns the pod object func createAndVerifyStatefulDeployment(ctx context.Context, scName *string, name, ns string, podLabels map[string]string, c clientset.Interface) *v1.Pod { … } func makeDeployment(ns, name, pvcName string, labels map[string]string) *appsv1.Deployment { … }