kubenetworks/kubevpn

View on GitHub
pkg/daemon/action/list.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Server.List has 5 return statements (exceeds 4 allowed).
Open

func (svr *Server) List(ctx context.Context, req *rpc.ListRequest) (*rpc.ListResponse, error) {
    if svr.connect == nil || svr.connect.GetClientset() == nil {
        return nil, fmt.Errorf("not connect to any cluster")
    }
    mapInterface := svr.connect.GetClientset().CoreV1().ConfigMaps(svr.connect.Namespace)
Severity: Major
Found in pkg/daemon/action/list.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status