alibaba/kt-connect

View on GitHub
pkg/kt/service/cluster/global.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Kubernetes.GetKtResources has 5 return statements (exceeds 4 allowed).
Open

func (k *Kubernetes) GetKtResources(namespace string) ([]coreV1.Pod, []coreV1.ConfigMap, []appV1.Deployment, []coreV1.Service, error) {
    pods, err := Ins().GetPodsByLabel(map[string]string{util.ControlBy: util.KubernetesToolkit}, namespace)
    if err != nil {
        return nil, nil, nil, nil, err
    }
Severity: Major
Found in pkg/kt/service/cluster/global.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status