Skip to content

Commit e22f4c9

Browse files
committed
docs: improve examples
1 parent 40b2e23 commit e22f4c9

39 files changed

Lines changed: 1886 additions & 960 deletions

File tree

cmd/dev.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type DevCmd struct {
5353
WorkingDirectory string
5454
Pipeline string
5555

56-
DisableUI bool
56+
ShowUI bool
5757

5858
configLoader loader.ConfigLoader
5959
log log.Logger
@@ -101,7 +101,7 @@ Starts your project in development mode
101101
devCmd.Flags().BoolVar(&cmd.SkipPush, "skip-push", false, "Skips image pushing, useful for minikube deployment")
102102
devCmd.Flags().BoolVar(&cmd.SkipPushLocalKubernetes, "skip-push-local-kube", true, "Skips image pushing, if a local kubernetes environment is detected")
103103

104-
devCmd.Flags().BoolVar(&cmd.DisableUI, "disable-ui", false, "Disables the ui server")
104+
devCmd.Flags().BoolVar(&cmd.ShowUI, "show-ui", false, "Shows the ui server")
105105

106106
devCmd.Flags().IntVar(&cmd.UIPort, "ui-port", 0, "The port to use when opening the ui server")
107107
devCmd.Flags().StringVar(&cmd.Pipeline, "pipeline", "", "The pipeline to execute")
@@ -172,7 +172,7 @@ func (cmd *DevCmd) runCommand(ctx *devspacecontext.Context, f factory.Factory, c
172172
},
173173
ConfigOptions: configOptions,
174174
Pipeline: cmd.Pipeline,
175-
ShowUI: !cmd.DisableUI,
175+
ShowUI: cmd.ShowUI,
176176
UIPort: cmd.UIPort,
177177
})
178178
}

cmd/run_pipeline.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type RunPipelineCmd struct {
3535
ForceDeploy bool
3636
SkipDeploy bool
3737

38-
DisableUI bool
38+
ShowUI bool
3939

4040
configLoader loader.ConfigLoader
4141
log log.Logger
@@ -83,7 +83,7 @@ Execute a pipeline
8383
runPipelineCmd.Flags().BoolVar(&cmd.SkipPush, "skip-push", false, "Skips image pushing, useful for minikube deployment")
8484
runPipelineCmd.Flags().BoolVar(&cmd.SkipPushLocalKubernetes, "skip-push-local-kube", true, "Skips image pushing, if a local kubernetes environment is detected")
8585

86-
runPipelineCmd.Flags().BoolVar(&cmd.DisableUI, "disable-ui", false, "Disables the ui server")
86+
runPipelineCmd.Flags().BoolVar(&cmd.ShowUI, "show-ui", false, "Shows the ui server")
8787
return runPipelineCmd
8888
}
8989

@@ -136,6 +136,6 @@ func (cmd *RunPipelineCmd) runCommand(ctx *devspacecontext.Context, f factory.Fa
136136
},
137137
ConfigOptions: configOptions,
138138
Pipeline: pipeline,
139-
ShowUI: !cmd.DisableUI,
139+
ShowUI: cmd.ShowUI,
140140
})
141141
}

examples/hot-reload-container-restart/devspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ vars:
77
images:
88
my-image:
99
image: ${IMAGE}
10+
rebuildStrategy: ignoreContextChanges
1011

1112
deployments:
1213
my-deployment:

examples/kind/devspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ vars:
66
images:
77
my-image:
88
image: ${IMAGE}
9+
rebuildStrategy: ignoreContextChanges
910

1011
deployments:
1112
my-deployment:

examples/microservices/node/devspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ vars:
77
images:
88
node:
99
image: ${IMAGE}
10+
rebuildStrategy: ignoreContextChanges
1011

1112
deployments:
1213
node:

examples/microservices/php/devspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ vars:
77
images:
88
php:
99
image: ${IMAGE}
10+
rebuildStrategy: ignoreContextChanges
1011

1112
deployments:
1213
php:

examples/minikube/.dockerignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/minikube/Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/minikube/chart/Chart.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/minikube/chart/templates/deployment.yaml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)