@@ -96,7 +96,7 @@ You can add one by annotating a service with the label {{.labelName}}:{{.addonNa
}
iflen(urlString)!=0{
out.T(style.Celebrate,"Opening Kubernetes service {{.namespace_name}}/{{.service_name}} in default browser...",out.V{"namespace_name":namespace,"service_name":svc})
out.Step(style.Celebrate,"Opening Kubernetes service {{.namespace_name}}/{{.service_name}} in default browser...",out.V{"namespace_name":namespace,"service_name":svc})
for_,url:=rangeurlString{
iferr:=browser.OpenURL(url);err!=nil{
exit.Error(reason.HostBrowser,fmt.Sprintf("browser failed to open url %s",url),err)
// if driver is oci driver, delete containers and volumes
ifdriver.IsKIC(profile.Config.Driver){
out.T(style.DeletingHost,`Deleting "{{.profile_name}}" in {{.driver_name}} ...`,out.V{"profile_name":profile.Name,"driver_name":profile.Config.Driver})
out.Step(style.DeletingHost,`Deleting "{{.profile_name}}" in {{.driver_name}} ...`,out.V{"profile_name":profile.Name,"driver_name":profile.Config.Driver})
out.T(style.Mounting,"Mounting host path {{.sourcePath}} into VM as {{.destinationPath}} ...",out.V{"sourcePath":hostPath,"destinationPath":vmPath})
out.Step(style.Mounting,"Mounting host path {{.sourcePath}} into VM as {{.destinationPath}} ...",out.V{"sourcePath":hostPath,"destinationPath":vmPath})
out.T(style.Celebrate,"Opening service {{.namespace_name}}/{{.service_name}} in default browser...",out.V{"namespace_name":namespace,"service_name":svc})
out.Step(style.Celebrate,"Opening service {{.namespace_name}}/{{.service_name}} in default browser...",out.V{"namespace_name":namespace,"service_name":svc})
out.T(style.Kubectl,"To connect to this cluster, use: --context={{.name}}",out.V{"name":kcs.ClusterName})
out.Step(style.Kubectl,"To connect to this cluster, use: --context={{.name}}",out.V{"name":kcs.ClusterName})
}else{
out.T(style.Ready,`Done! kubectl is now configured to use "{{.name}}" cluster and "{{.ns}}" namespace by default`,out.V{"name":machineName,"ns":kcs.Namespace})
out.Step(style.Ready,`Done! kubectl is now configured to use "{{.name}}" cluster and "{{.ns}}" namespace by default`,out.V{"name":machineName,"ns":kcs.Namespace})
}
}()
path,err:=exec.LookPath("kubectl")
iferr!=nil{
out.T(style.Tip,"kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'")
out.Step(style.Tip,"kubectl not found. If you need it, try: 'minikube kubectl -- get pods -A'")
out.T(style.Sparkle,`Automatically selected the {{.driver}} driver. Other choices: {{.alternates}}`,out.V{"driver":pick.Name,"alternates":strings.Join(altNames,", ")})
out.Step(style.Sparkle,`Automatically selected the {{.driver}} driver. Other choices: {{.alternates}}`,out.V{"driver":pick.Name,"alternates":strings.Join(altNames,", ")})
}else{
out.T(style.Sparkle,`Automatically selected the {{.driver}} driver`,out.V{"driver":pick.String()})
out.Step(style.Sparkle,`Automatically selected the {{.driver}} driver`,out.V{"driver":pick.String()})
out.T(style.New,"Kubernetes {{.new}} is now available. If you would like to upgrade, specify: --kubernetes-version={{.prefix}}{{.new}}",out.V{"prefix":version.VersionPrefix,"new":defaultVersion})
out.Step(style.New,"Kubernetes {{.new}} is now available. If you would like to upgrade, specify: --kubernetes-version={{.prefix}}{{.new}}",out.V{"prefix":version.VersionPrefix,"new":defaultVersion})
out.T(style.Celebrate,`"{{.context}}" context has been updated to point to {{.hostname}}:{{.port}}`,out.V{"context":cname,"hostname":co.CP.Hostname,"port":co.CP.Port})
out.Step(style.Celebrate,`"{{.context}}" context has been updated to point to {{.hostname}}:{{.port}}`,out.V{"context":cname,"hostname":co.CP.Hostname,"port":co.CP.Port})
}else{
out.T(style.Meh,`No changes required for the "{{.context}}" context`,out.V{"context":cname})
out.Step(style.Meh,`No changes required for the "{{.context}}" context`,out.V{"context":cname})
out.T(style.Notice,"Your GCP credentials will now be mounted into every pod created in the {{.name}} cluster.",out.V{"name":cc.Name})
out.T(style.Notice,"If you don't want your credentials mounted into a specific pod, add a label with the `gcp-auth-skip-secret` key to your pod configuration.")
out.Step(style.Notice,"Your GCP credentials will now be mounted into every pod created in the {{.name}} cluster.",out.V{"name":cc.Name})
out.Step(style.Notice,"If you don't want your credentials mounted into a specific pod, add a label with the `gcp-auth-skip-secret` key to your pod configuration.")
}
returnerr
...
...
@@ -347,7 +347,7 @@ func verifyAddonStatusInternal(cc *config.ClusterConfig, name string, val string
out.T(style.Permissions,"The '{{.driver}}' driver requires elevated permissions. The following commands will be executed:\n\n{{ .example }}\n",out.V{"driver":name,"example":example.String()})
out.Step(style.Permissions,"The '{{.driver}}' driver requires elevated permissions. The following commands will be executed:\n\n{{ .example }}\n",out.V{"driver":name,"example":example.String()})
out.T(style.Tip,"If you are still interested to make {{.driver_name}} driver work. The following suggestions might help you get passed this issue:",out.V{"driver_name":driver})
out.Step(style.Tip,"If you are still interested to make {{.driver_name}} driver work. The following suggestions might help you get passed this issue:",out.V{"driver_name":driver})
ifdriver==oci.Docker||driver==oci.Podman{
out.String("\n\t")
out.T(style.Empty,`- Prune unused {{.driver_name}} images, volumes, networks and abandoned containers.
out.Step(style.Empty,`- Prune unused {{.driver_name}} images, volumes, networks and abandoned containers.
{{.driver_name}} system prune --volumes`,out.V{"driver_name":driver})
}
out.String("\n\t")
out.T(style.Empty,`- Restart your {{.driver_name}} service`,out.V{"driver_name":driver})
out.Step(style.Empty,`- Restart your {{.driver_name}} service`,out.V{"driver_name":driver})
ifruntime.GOOS!="linux"{
out.String("\n\t")
out.T(style.Empty,`- Ensure your {{.driver_name}} daemon has access to enough CPU/memory resources.`,out.V{"driver_name":driver})
out.Step(style.Empty,`- Ensure your {{.driver_name}} daemon has access to enough CPU/memory resources.`,out.V{"driver_name":driver})
@@ -113,7 +113,7 @@ func recreateIfNeeded(api libmachine.API, cc *config.ClusterConfig, n *config.No
}
if!me||err==constants.ErrMachineMissing{
out.T(style.Shrug,`{{.driver_name}} "{{.cluster}}" {{.machine_type}} is missing, will recreate.`,out.V{"driver_name":cc.Driver,"cluster":machineName,"machine_type":machineType})
out.Step(style.Shrug,`{{.driver_name}} "{{.cluster}}" {{.machine_type}} is missing, will recreate.`,out.V{"driver_name":cc.Driver,"cluster":machineName,"machine_type":machineType})
demolish(api,*cc,*n,h)
klog.Infof("Sleeping 1 second for extra luck!")
...
...
@@ -135,13 +135,13 @@ func recreateIfNeeded(api libmachine.API, cc *config.ClusterConfig, n *config.No
ifs==state.Running{
if!recreated{
out.T(style.Running,`Updating the running {{.driver_name}} "{{.cluster}}" {{.machine_type}} ...`,out.V{"driver_name":cc.Driver,"cluster":machineName,"machine_type":machineType})
out.Step(style.Running,`Updating the running {{.driver_name}} "{{.cluster}}" {{.machine_type}} ...`,out.V{"driver_name":cc.Driver,"cluster":machineName,"machine_type":machineType})
}
returnh,nil
}
if!recreated{
out.T(style.Restarting,`Restarting existing {{.driver_name}} {{.machine_type}} for "{{.cluster}}" ...`,out.V{"driver_name":cc.Driver,"cluster":machineName,"machine_type":machineType})
out.Step(style.Restarting,`Restarting existing {{.driver_name}} {{.machine_type}} for "{{.cluster}}" ...`,out.V{"driver_name":cc.Driver,"cluster":machineName,"machine_type":machineType})
}
iferr:=h.Driver.Start();err!=nil{
MaybeDisplayAdvice(err,h.DriverName)
...
...
@@ -161,7 +161,7 @@ func maybeWarnAboutEvalEnv(drver string, name string) {
out.ErrT(style.Connectivity,"Unfortunately, could not download the base image {{.image_name}} ",out.V{"image_name":strings.Split(kic.BaseImage,"@")[0]})
out.WarningT("In order to use the fall back image, you need to log in to the github packages registry")
out.T(style.Documentation,`Please visit the following link for documentation around this:
out.Step(style.Documentation,`Please visit the following link for documentation around this:
out.WarningT("You appear to be using a proxy, but your NO_PROXY environment does not include the minikube IP ({{.ip_address}}).",out.V{"ip_address":ip})
out.T(style.Documentation,"Please see {{.documentation_url}} for more details",out.V{"documentation_url":"https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/"})
out.Step(style.Documentation,"Please see {{.documentation_url}} for more details",out.V{"documentation_url":"https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/"})