Skip to content

Commit

Permalink
remove deadcode (#79)
Browse files Browse the repository at this point in the history
Signed-off-by: aSquare14 <[email protected]>
  • Loading branch information
asquare14 committed May 6, 2021
1 parent a57738d commit 57a9410
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion pkg/kubernetes/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions pkg/kubernetes/pvc/persistentvolumeclaim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57a9410

Please sign in to comment.