pkg/util/kube.go
Function ConvertK8sApiServerToDomain
has 69 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func ConvertK8sApiServerToDomain(kubeConfigPath string) (newPath string, err error) {
var kubeConfigBytes []byte
kubeConfigBytes, err = os.ReadFile(kubeConfigPath)
if err != nil {
return
Function ConvertK8sApiServerToDomain
has 15 return statements (exceeds 4 allowed). Open
Open
func ConvertK8sApiServerToDomain(kubeConfigPath string) (newPath string, err error) {
var kubeConfigBytes []byte
kubeConfigBytes, err = os.ReadFile(kubeConfigPath)
if err != nil {
return