Skip to content

Commit d1ee89d

Browse files
author
gentele
committed
fix issue with init command
1 parent c993e7f commit d1ee89d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/init.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (cmd *InitCmd) Run(cobraCmd *cobra.Command, args []string) {
152152
Auth: &v1.RegistryAuth{},
153153
},
154154
},
155-
}, false)
155+
}, true)
156156

157157
imageMap := *config.Images
158158
cmd.defaultImage = imageMap["default"]
@@ -259,21 +259,21 @@ func (cmd *InitCmd) useCloudProvider() bool {
259259
err := cloud.Update(providerConfig, config, addToContext, true)
260260
log.StopWait()
261261
if err != nil {
262-
log.Fatalf("Couldn't authenticate to devspace cloud: %v", err)
262+
log.Fatalf("Couldn't authenticate to DevSpace Cloud: %v", err)
263263
}
264264

265265
return true
266266
}
267267
} else {
268268
useDevSpaceCloud := *stdinutil.GetFromStdin(&stdinutil.GetFromStdinParams{
269-
Question: "Do you want to use the devspace cloud? (free ready-to-use kubernetes) (yes | no)",
269+
Question: "Do you want to use the DevSpace Cloud? (free ready-to-use Kubernetes) (yes | no)",
270270
DefaultValue: "yes",
271271
ValidationRegexPattern: "^(yes)|(no)$",
272272
}) == "yes"
273273

274274
if useDevSpaceCloud {
275275
addToContext := *stdinutil.GetFromStdin(&stdinutil.GetFromStdinParams{
276-
Question: "Do you want to add the devspace-cloud to the $HOME/.kube/config file? (yes | no)",
276+
Question: "Do you want to add the DevSpace Cloud to the $HOME/.kube/config file? (yes | no)",
277277
DefaultValue: "yes",
278278
ValidationRegexPattern: "^(yes)|(no)$",
279279
}) == "yes"
@@ -284,7 +284,7 @@ func (cmd *InitCmd) useCloudProvider() bool {
284284
err := cloud.Update(providerConfig, config, addToContext, true)
285285
log.StopWait()
286286
if err != nil {
287-
log.Fatalf("Couldn't authenticate to devspace cloud: %v", err)
287+
log.Fatalf("Couldn't authenticate to DevSpace Cloud: %v", err)
288288
}
289289

290290
return true

0 commit comments

Comments
 (0)