Skip to content

Commit

Permalink
Added causing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Petrausch authored and ckotzbauer committed May 6, 2022
1 parent c68c429 commit c9e0ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
meta "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"

Expand Down Expand Up @@ -70,7 +70,7 @@ func (client *KubeClient) ListNamespaces(labelSelector string) ([]corev1.Namespa
list, err := client.Client.CoreV1().Namespaces().List(context.Background(), prepareLabelSelector(labelSelector))

if err != nil {
return []corev1.Namespace{}, fmt.Errorf("failed to list namespaces")
return []corev1.Namespace{}, fmt.Errorf("failed to list namespaces: %w", err)
}

return list.Items, nil
Expand Down

0 comments on commit c9e0ee7

Please sign in to comment.