err=errors.Wrapf(err,"failed to json unmarshal %s in configmap %s: %s",consts.KubeConfigMapKeyNetworkConfigIngressAnnotations,consts.KubeConfigMapNameNetworkConfig,annotations_)
logrus.Infof("The %s in the network config has already set to `%s`",consts.KubeConfigMapKeyNetworkConfigDomainSuffix,domainSuffix)
return
}
magicDNS:=GetMagicDNS()
varipstring
ip,err=GetIngressIP(ctx,configmapGetter,cliset)
iferr!=nil{
return
}
domainSuffix=fmt.Sprintf("%s.%s",ip,magicDNS)
logrus.Infof("you have not set the %s in the network config, so use magic DNS to generate a domain suffix automatically: `%s`, and set it to the network config",consts.KubeConfigMapKeyNetworkConfigDomainSuffix,domainSuffix)