kubenetworks/kubevpn

View on GitHub
pkg/util/route.go

Summary

Maintainability
A
35 mins
Test Coverage

Function GetNsForListPodAndSvc has 5 return statements (exceeds 4 allowed).
Open

func GetNsForListPodAndSvc(ctx context.Context, clientset *kubernetes.Clientset, nsList []string) (podNs string, svcNs string, err error) {
    for _, ns := range nsList {
        log.Debugf("List namepsace %s pods", ns)
        _, err = clientset.CoreV1().Pods(ns).List(ctx, metav1.ListOptions{Limit: 1})
        if apierrors.IsForbidden(err) {
Severity: Major
Found in pkg/util/route.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status