Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo: corrected 'retreive' to 'retrieve' #195

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading