Skip to content

Commit

Permalink
Fix typo: corrected 'retreive' to 'retrieve' (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
doronkg authored Jan 30, 2024
1 parent a057860 commit 979d3bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/kor/pvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
)

func retreiveUsedPvcs(clientset kubernetes.Interface, namespace string) ([]string, error) {
func retrieveUsedPvcs(clientset kubernetes.Interface, namespace string) ([]string, error) {
pods, err := clientset.CoreV1().Pods(namespace).List(context.TODO(), metav1.ListOptions{})
if err != nil {
fmt.Printf("Failed to list Pods: %v\n", err)
Expand Down Expand Up @@ -55,7 +55,7 @@ func processNamespacePvcs(clientset kubernetes.Interface, namespace string, filt
pvcNames = append(pvcNames, pvc.Name)
}

usedPvcs, err := retreiveUsedPvcs(clientset, namespace)
usedPvcs, err := retrieveUsedPvcs(clientset, namespace)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/kor/pvc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func createTestPvcs(t *testing.T) *fake.Clientset {
return clientset
}

func TestRetreiveUsedPvcs(t *testing.T) {
func TestRetrieveUsedPvcs(t *testing.T) {
clientset := createTestPvcs(t)
usedPvcs, err := retreiveUsedPvcs(clientset, testNamespace)
usedPvcs, err := retrieveUsedPvcs(clientset, testNamespace)
if err != nil {
t.Errorf("Expected no error, got %v", err)
}
Expand Down

0 comments on commit 979d3bf

Please sign in to comment.