Print the log in the correct place

This commit is contained in:
M. Mert Yildiran
2022-12-30 01:22:09 +03:00
parent 81379c0cc6
commit b17465563d
2 changed files with 4 additions and 2 deletions

View File

@@ -1060,7 +1060,6 @@ func ValidateKubernetesVersion(serverVersionSemVer *semver.SemVersion) error {
}
func loadKubernetesConfiguration(kubeConfigPath string, context string) clientcmd.ClientConfig {
log.Info().Str("path", kubeConfigPath).Msg("Using kubeconfig:")
configPathList := filepath.SplitList(kubeConfigPath)
configLoadingRules := &clientcmd.ClientConfigLoadingRules{}
if len(configPathList) <= 1 {