diff --git a/pkg/build/build.go b/pkg/build/build.go index c6d4be99..79d09aee 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -44,7 +44,6 @@ type Build struct { type NewBuildOptions struct { Name string - DevMode bool TemplateData v1alpha1.BuildCustomizationSpec KindConfigPath string KubeConfigPath string @@ -61,7 +60,6 @@ type NewBuildOptions struct { func NewBuild(opts NewBuildOptions) *Build { return &Build{ name: opts.Name, - devMode: opts.DevMode, kindConfigPath: opts.KindConfigPath, kubeConfigPath: opts.KubeConfigPath, kubeVersion: opts.KubeVersion, diff --git a/pkg/cmd/create/root.go b/pkg/cmd/create/root.go index e3c15353..ace971a2 100644 --- a/pkg/cmd/create/root.go +++ b/pkg/cmd/create/root.go @@ -135,7 +135,6 @@ func create(cmd *cobra.Command, args []string) error { opts := build.NewBuildOptions{ Name: buildName, - DevMode: devMode, KubeVersion: kubeVersion, KubeConfigPath: kubeConfigPath, KindConfigPath: kindConfigPath, @@ -147,6 +146,7 @@ func create(cmd *cobra.Command, args []string) error { IngressHost: ingressHost, Port: port, UsePathRouting: pathRouting, + DevMode: devMode, }, CustomPackageDirs: absDirPaths,