@@ -93,21 +93,12 @@ type Pipeline struct {
9393 // Name of the pipeline, will be filled automatically
9494 Name string `yaml:"name,omitempty" json:"name,omitempty"`
9595
96- // Rerun defines when this job should get reexecuted
97- Rerun * JobRerun `yaml:"rerun,omitempty" json:"rerun,omitempty"`
98-
9996 // Steps are the steps that are run in order for this job
10097 Steps []PipelineStep `yaml:"steps,omitempty" json:"steps,omitempty"`
10198}
10299
103- type JobRerun struct {
104- }
105-
106100// PipelineStep is a step within a single pipeline
107101type PipelineStep struct {
108- // Name of the pipeline step to execute
109- Name string `yaml:"name,omitempty" json:"name,omitempty"`
110-
111102 // If defines a condition as shell command to check if the command
112103 // should get executed.
113104 If string `yaml:"if,omitempty" json:"if,omitempty"`
@@ -120,11 +111,8 @@ type PipelineStep struct {
120111 // pipeline step
121112 Run string `yaml:"run,omitempty" json:"run,omitempty"`
122113
123- // Directory is the working directory of the pipeline step
124- Directory string `yaml:"directory,omitempty" json:"directory,omitempty"`
125-
126- // Env are additional environment variables to use for this pipeline step.
127- Env map [string ]string `yaml:"env,omitempty" json:"env,omitempty"`
114+ // WorkingDir is the working directory of the pipeline step
115+ WorkingDir string `yaml:"workingDir,omitempty" json:"workingDir,omitempty"`
128116}
129117
130118type RequireConfig struct {
@@ -219,7 +207,7 @@ type RebuildStrategy string
219207
220208// List of values that source can take
221209const (
222- RebuildStrategyDefault RebuildStrategy = ""
210+ RebuildStrategyDefault RebuildStrategy = "default "
223211 RebuildStrategyAlways RebuildStrategy = "always"
224212 RebuildStrategyIgnoreContextChanges RebuildStrategy = "ignoreContextChanges"
225213)
@@ -239,10 +227,6 @@ type BuildConfig struct {
239227 // If custom is specified, DevSpace will build the image with the help of
240228 // a custom script.
241229 Custom * CustomConfig `yaml:"custom,omitempty" json:"custom,omitempty"`
242-
243- // This overrides other options and is able to disable the build for this image.
244- // Useful if you just want to select the image in a sync path or via devspace enter --image
245- Disabled bool `yaml:"disabled,omitempty" json:"disabled,omitempty"`
246230}
247231
248232// DockerConfig tells the DevSpace CLI to build with Docker on Minikube or on localhost
@@ -511,7 +495,6 @@ type BuildOptions struct {
511495type DeploymentConfig struct {
512496 Name string `yaml:"name" json:"name"`
513497 Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
514- Disabled bool `yaml:"disabled,omitempty" json:"disabled,omitempty"`
515498 Helm * HelmConfig `yaml:"helm,omitempty" json:"helm,omitempty"`
516499 Kubectl * KubectlConfig `yaml:"kubectl,omitempty" json:"kubectl,omitempty"`
517500}
@@ -697,7 +680,6 @@ type RollingUpdateConfig struct {
697680// HelmConfig defines the specific helm options used during deployment
698681type HelmConfig struct {
699682 Chart * ChartConfig `yaml:"chart,omitempty" json:"chart,omitempty"`
700- ComponentChart * bool `yaml:"componentChart,omitempty" json:"componentChart,omitempty"`
701683 Values map [string ]interface {} `yaml:"values,omitempty" json:"values,omitempty"`
702684 ValuesFiles []string `yaml:"valuesFiles,omitempty" json:"valuesFiles,omitempty"`
703685 ReplaceImageTags bool `yaml:"replaceImageTags,omitempty" json:"replaceImageTags,omitempty"`
@@ -719,22 +701,12 @@ type HelmConfig struct {
719701
720702// ChartConfig defines the helm chart options
721703type ChartConfig struct {
722- Name string `yaml:"name,omitempty" json:"name,omitempty"`
723- Version string `yaml:"version,omitempty" json:"version,omitempty"`
724- RepoURL string `yaml:"repo,omitempty" json:"repo,omitempty"`
725- Username string `yaml:"username,omitempty" json:"username,omitempty"`
726- Password string `yaml:"password,omitempty" json:"password,omitempty"`
727- Git * GitSource `yaml:"git,omitempty" json:"git,omitempty"`
728- }
729-
730- //GitSource defines the git repository options
731- type GitSource struct {
732- URL string `yaml:"url,omitempty" json:"url,omitempty"`
733- CloneArgs []string `yaml:"cloneArgs,omitempty" json:"cloneArgs,omitempty"`
734- Branch string `yaml:"branch,omitempty" json:"branch,omitempty"`
735- Tag string `yaml:"tag,omitempty" json:"tag,omitempty"`
736- Revision string `yaml:"revision,omitempty" json:"revision,omitempty"`
737- SubPath string `yaml:"subPath,omitempty" json:"subPath,omitempty"`
704+ Name string `yaml:"name,omitempty" json:"name,omitempty"`
705+ Version string `yaml:"version,omitempty" json:"version,omitempty"`
706+ RepoURL string `yaml:"repo,omitempty" json:"repo,omitempty"`
707+ Username string `yaml:"username,omitempty" json:"username,omitempty"`
708+ Password string `yaml:"password,omitempty" json:"password,omitempty"`
709+ Source * SourceConfig `yaml:",inline" json:",inline"`
738710}
739711
740712// KubectlConfig defines the specific kubectl options used during deployment
@@ -750,7 +722,6 @@ type KubectlConfig struct {
750722
751723type DevPod struct {
752724 Name string `yaml:"name,omitempty" json:"name,omitempty"`
753- Pod string `yaml:"pod,omitempty" json:"pod,omitempty"`
754725 ImageSelector string `yaml:"imageSelector,omitempty" json:"imageSelector,omitempty"`
755726 LabelSelector map [string ]string `yaml:"labelSelector,omitempty" json:"labelSelector,omitempty"`
756727 Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
@@ -764,7 +735,7 @@ type DevPod struct {
764735
765736 // Container Options
766737 DevContainer `yaml:",inline" json:",inline"`
767- Containers [] DevContainer `yaml:"containers,omitempty" json:"containers,omitempty"`
738+ Containers map [ string ] * DevContainer `yaml:"containers,omitempty" json:"containers,omitempty"`
768739}
769740
770741type DevContainer struct {
@@ -1000,7 +971,6 @@ type DependencyConfig struct {
1000971 DisableProfileActivation bool `yaml:"disableProfileActivation,omitempty" json:"disableProfileActivation,omitempty"`
1001972 Vars []DependencyVar `yaml:"vars,omitempty" json:"vars,omitempty"`
1002973 OverwriteVars bool `yaml:"overwriteVars,omitempty" json:"overwriteVars,omitempty"`
1003- SkipBuild bool `yaml:"skipBuild,omitempty" json:"skipBuild,omitempty"`
1004974 IgnoreDependencies bool `yaml:"ignoreDependencies,omitempty" json:"ignoreDependencies,omitempty"`
1005975 Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"`
1006976}
@@ -1040,7 +1010,6 @@ type SourceConfig struct {
10401010 Branch string `yaml:"branch,omitempty" json:"branch,omitempty"`
10411011 Tag string `yaml:"tag,omitempty" json:"tag,omitempty"`
10421012 Revision string `yaml:"revision,omitempty" json:"revision,omitempty"`
1043- ConfigName string `yaml:"configName,omitempty" json:"configName,omitempty"`
10441013
10451014 Path string `yaml:"path,omitempty" json:"path,omitempty"`
10461015}
0 commit comments