Skip to content

Commit cc0a04f

Browse files
committedFeb 22, 2019
Update examples
1 parent 394d510 commit cc0a04f

File tree

110 files changed

+7293
-1598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+7293
-1598
lines changed
 

‎cmd/deploy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ func init() {
3737

3838
cobraCmd := &cobra.Command{
3939
Use: "deploy",
40-
Short: "Deploy your DevSpace to a target cluster",
40+
Short: "Deploy the devspace to a target cluster",
4141
Long: `
4242
#######################################################
4343
################## devspace deploy ####################
4444
#######################################################
4545
Deploys the devspace to a target cluster:
4646
4747
devspace deploy --namespace=deploy
48-
devspace deploy --namespace=deploy --docker-target=production
48+
devspace deploy --namespace=deploy
4949
devspace deploy --kube-context=deploy-context
5050
#######################################################`,
5151
Args: cobra.MaximumNArgs(1),

‎cmd/init.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func (cmd *InitCmd) Run(cobraCmd *cobra.Command, args []string) {
151151
Version: ptr.String(latest.Version),
152152
Images: &map[string]*latest.ImageConfig{
153153
"default": &latest.ImageConfig{
154-
Name: ptr.String("devspace"),
154+
Image: ptr.String("devspace"),
155155
},
156156
},
157157
})
@@ -200,14 +200,6 @@ func (cmd *InitCmd) Run(cobraCmd *cobra.Command, args []string) {
200200
cmd.addDefaultSyncConfig()
201201
cmd.configureImage()
202202

203-
// Get image name
204-
if len(*config.Images) > 0 {
205-
for _, imageConf := range *config.Images {
206-
cmd.imageName = *imageConf.Name
207-
break
208-
}
209-
}
210-
211203
err := configutil.SaveBaseConfig()
212204
if err != nil {
213205
log.With(err).Fatalf("Config error: %s", err.Error())
@@ -241,6 +233,16 @@ func (cmd *InitCmd) Run(cobraCmd *cobra.Command, args []string) {
241233
}
242234

243235
func (cmd *InitCmd) replacePlaceholder() {
236+
config := configutil.GetConfig()
237+
238+
// Get image name
239+
if len(*config.Images) > 0 {
240+
for _, imageConf := range *config.Images {
241+
cmd.imageName = *imageConf.Image
242+
break
243+
}
244+
}
245+
244246
data, err := ioutil.ReadFile("chart/values.yaml")
245247
if err != nil {
246248
log.Fatal("Couldn't find chart/values.yaml")

0 commit comments

Comments
 (0)