Turn console output message into less noisy info message
parent
abff28db7e
commit
742dee9e4c
|
@ -291,6 +291,7 @@ func showKubectlConnectInfo(kubeconfig *pkgutil.KubeConfigSetup) {
|
|||
func selectImageRepository(mirrorCountry string, k8sVersion string) (bool, string, error) {
|
||||
var tryCountries []string
|
||||
var fallback string
|
||||
glog.Infof("selecting image repository for country %s ...", mirrorCountry)
|
||||
|
||||
if mirrorCountry != "" {
|
||||
localRepos, ok := constants.ImageRepositories[mirrorCountry]
|
||||
|
@ -424,7 +425,6 @@ func generateConfig(cmd *cobra.Command, k8sVersion string) (cfg.Config, error) {
|
|||
repository := viper.GetString(imageRepository)
|
||||
mirrorCountry := strings.ToLower(viper.GetString(imageMirrorCountry))
|
||||
if strings.ToLower(repository) == "auto" || mirrorCountry != "" {
|
||||
// console.OutStyle(console.Connectivity, "checking main repository and mirrors for images")
|
||||
found, autoSelectedRepository, err := selectImageRepository(mirrorCountry, k8sVersion)
|
||||
if err != nil {
|
||||
exit.WithError("Failed to check main repository and mirrors for images for images", err)
|
||||
|
|
Loading…
Reference in New Issue