This commit is contained in:
Tomas Kral 2016-11-22 13:00:36 +01:00
parent c441610b4f
commit 4e42a07be2
No known key found for this signature in database
GPG Key ID: E690DA7E4F291FA6
3 changed files with 5 additions and 5 deletions

View File

@ -87,7 +87,7 @@ func generateBashCompletion(args []string) {
commonArgs := []string{"bundle", "file", "suppress-warnings", "verbose", "error-on-warning", "provider"} commonArgs := []string{"bundle", "file", "suppress-warnings", "verbose", "error-on-warning", "provider"}
flags := append(commonArgs, args...) flags := append(commonArgs, args...)
for _,f := range flags { for _, f := range flags {
fmt.Printf("--%s\n", f) fmt.Printf("--%s\n", f)
} }
} }

View File

@ -382,7 +382,7 @@ func (k *Kubernetes) Deploy(komposeObject kobject.KomposeObject, opt kobject.Con
if !opt.EmptyVols { if !opt.EmptyVols {
pvcStr = " and PersistentVolumeClaims " pvcStr = " and PersistentVolumeClaims "
} }
fmt.Println("We are going to create Kubernetes Deployments, Services" +pvcStr+ "for your Dockerized application. \n" + fmt.Println("We are going to create Kubernetes Deployments, Services" + pvcStr + "for your Dockerized application. \n" +
"If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead. \n") "If you need different kind of resources, use the 'kompose convert' and 'kubectl create -f' commands instead. \n")
factory := cmdutil.NewFactory(nil) factory := cmdutil.NewFactory(nil)
@ -424,7 +424,7 @@ func (k *Kubernetes) Deploy(komposeObject kobject.KomposeObject, opt kobject.Con
} else { } else {
pvcStr = "" pvcStr = ""
} }
fmt.Println("\nYour application has been deployed to Kubernetes. You can run 'kubectl get deployment,svc,pods" +pvcStr+ "' for details.") fmt.Println("\nYour application has been deployed to Kubernetes. You can run 'kubectl get deployment,svc,pods" + pvcStr + "' for details.")
return nil return nil
} }

View File

@ -178,7 +178,7 @@ func (o *OpenShift) Deploy(komposeObject kobject.KomposeObject, opt kobject.Conv
if !opt.EmptyVols { if !opt.EmptyVols {
pvcStr = " and PersistentVolumeClaims " pvcStr = " and PersistentVolumeClaims "
} }
fmt.Println("We are going to create OpenShift DeploymentConfigs, Services" +pvcStr+ "for your Dockerized application. \n" + fmt.Println("We are going to create OpenShift DeploymentConfigs, Services" + pvcStr + "for your Dockerized application. \n" +
"If you need different kind of resources, use the 'kompose convert' and 'oc create -f' commands instead. \n") "If you need different kind of resources, use the 'kompose convert' and 'oc create -f' commands instead. \n")
// initialize OpenShift Client // initialize OpenShift Client
@ -238,7 +238,7 @@ func (o *OpenShift) Deploy(komposeObject kobject.KomposeObject, opt kobject.Conv
} else { } else {
pvcStr = "" pvcStr = ""
} }
fmt.Println("\nYour application has been deployed to OpenShift. You can run 'oc get dc,svc,is" +pvcStr+ "' for details.") fmt.Println("\nYour application has been deployed to OpenShift. You can run 'oc get dc,svc,is" + pvcStr + "' for details.")
return nil return nil
} }