diff --git a/pkg/kubernetes/client/client.go b/pkg/kubernetes/client/client.go index 262881e..e24ed5b 100644 --- a/pkg/kubernetes/client/client.go +++ b/pkg/kubernetes/client/client.go @@ -41,7 +41,6 @@ import ( ) const ( - defaultReplicaSC = "openebs-hostpath" defaultNS = "openebs" defaultSizeBytes = 5 * helpers.GiB // pvcNameKey holds the name of the PVC which is passed as a parameter diff --git a/pkg/kubernetes/pvc/persistentvolumeclaim_test.go b/pkg/kubernetes/pvc/persistentvolumeclaim_test.go index d9dac43..6edc34d 100644 --- a/pkg/kubernetes/pvc/persistentvolumeclaim_test.go +++ b/pkg/kubernetes/pvc/persistentvolumeclaim_test.go @@ -18,19 +18,6 @@ import ( corev1 "k8s.io/api/core/v1" ) -func fakeAPIPVCList(pvcNames []string) *corev1.PersistentVolumeClaimList { - if len(pvcNames) == 0 { - return nil - } - list := &corev1.PersistentVolumeClaimList{} - for _, name := range pvcNames { - pvc := corev1.PersistentVolumeClaim{} - pvc.SetName(name) - list.Items = append(list.Items, pvc) - } - return list -} - func fakeAPIPVCListFromNameStatusMap(pvcs map[string]corev1.PersistentVolumeClaimPhase) *corev1.PersistentVolumeClaimList { if len(pvcs) == 0 { return nil diff --git a/tests/utils.go b/tests/utils.go index 67fd7a5..d8a7818 100644 --- a/tests/utils.go +++ b/tests/utils.go @@ -220,13 +220,6 @@ func getAppPodName(deployName string) string { return strings.TrimSpace(string(stdout)) } -func getControllerPodName() string { - stdout, stderr, err := Kubectl("get", "po", "--selector", fmt.Sprintf("openebs.io/component=jiva-controller,openebs.io/persistent-volume=%s", pvName), "-n", "openebs", "-o", "jsonpath={.items[*].metadata.name}") - Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr) - fmt.Println(string(stdout)) - return strings.TrimSpace(string(stdout)) -} - func getControllerDeploymentName() string { stdout, stderr, err := Kubectl("get", "deploy", "--selector", fmt.Sprintf("openebs.io/component=jiva-controller,openebs.io/persistent-volume=%s", pvName), "-n", "openebs", "-o", "jsonpath={.items[*].metadata.name}") Expect(err).ShouldNot(HaveOccurred(), "stdout=%s, stderr=%s", stdout, stderr)