Repository: yonahd/kor
Pull request #195 (2024-01-30 16:55:11)

Fix typo: corrected 'retreive' to 'retrieve'

codecov-commenter: ## [Codecov](https://app.codecov.io/gh/yonahd/kor/pull/195?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yonah+Dissen) Report
All modified and coverable lines are covered by tests :white_check_mark:
> Comparison is base [(`a057860`)](https://app.codecov.io/gh/yonahd/kor/commit/a057860a5d8afc1b6d86c75d18dbeb81a67e5466?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yonah+Dissen) 45.93% compared to head [(`60c71c7`)](https://app.codecov.io/gh/yonahd/kor/pull/195?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yonah+Dissen) 45.93%.


:exclamation: Your organization needs to install the [Codecov GitHub app](https://github.com/apps/codecov/installations/select_target) to enable full functionality.

<details><summary>Additional details and impacted files</summary>


```diff
@@           Coverage Diff           @@
##             main     #195   +/-   ##
=======================================
  Coverage   45.93%   45.93%           
=======================================
  Files          25       25           
  Lines        2410     2410           
=======================================
  Hits         1107     1107           
  Misses       1119     1119           
  Partials      184      184           
```



</details>

[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/yonahd/kor/pull/195?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yonah+Dissen).   
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yonah+Dissen).


Patch:
diff --git a/pkg/kor/pvc.go b/pkg/kor/pvc.go
index a35e71b..97b0130 100644
--- a/pkg/kor/pvc.go
+++ b/pkg/kor/pvc.go
@@ -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)
@@ -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
 	}


Test patch:
diff --git a/pkg/kor/pvc_test.go b/pkg/kor/pvc_test.go
index 9b0124a..57fdb18 100644
--- a/pkg/kor/pvc_test.go
+++ b/pkg/kor/pvc_test.go
@@ -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)
 	}