alibaba/kt-connect

View on GitHub
pkg/kt/command/preview/expose.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func exposeLocalService(serviceName, shadowPodName string, labels, annotations map[string]string) error {

    envs := make(map[string]string)
    _, podName, privateKeyPath, err := cluster.Ins().GetOrCreateShadow(shadowPodName, labels, annotations, envs,
        opt.Get().Preview.Expose, map[int]string{})
Severity: Major
Found in pkg/kt/command/preview/expose.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status