@@ -14,10 +14,10 @@ import (
1414 "github.com/covexo/devspace/pkg/util/tar"
1515 "github.com/covexo/devspace/pkg/util/yamlutil"
1616
17- helmClient "github.com/covexo/devspace/pkg/devspace/clients/helm"
18- "github.com/covexo/devspace/pkg/devspace/clients/kubectl"
1917 "github.com/covexo/devspace/pkg/devspace/config/configutil"
2018 "github.com/covexo/devspace/pkg/devspace/config/v1"
19+ helmClient "github.com/covexo/devspace/pkg/devspace/deploy/helm"
20+ "github.com/covexo/devspace/pkg/devspace/kubectl"
2121 "github.com/covexo/devspace/pkg/util/log"
2222 "github.com/russross/blackfriday"
2323 "github.com/skratchdot/open-golang/open"
@@ -309,7 +309,7 @@ func (cmd *AddCmd) showReadme(chartVersion *repo.ChartVersion) {
309309
310310// RunAddSync executes the add sync command logic
311311func (cmd * AddCmd ) RunAddSync (cobraCmd * cobra.Command , args []string ) {
312- config := configutil .GetConfig (false )
312+ config := configutil .GetConfig ()
313313
314314 if cmd .syncFlags .Selector == "" {
315315 cmd .syncFlags .Selector = "release=" + * config .DevSpace .Release .Name
@@ -345,7 +345,7 @@ func (cmd *AddCmd) RunAddSync(cobraCmd *cobra.Command, args []string) {
345345 }
346346
347347 syncConfig := append (* config .DevSpace .Sync , & v1.SyncConfig {
348- ResourceType : configutil . String ( cmd . syncFlags . ResourceType ) ,
348+ ResourceType : nil ,
349349 LabelSelector : & labelSelectorMap ,
350350 ContainerPath : configutil .String (cmd .syncFlags .ContainerPath ),
351351 LocalSubPath : configutil .String (cmd .syncFlags .LocalPath ),
@@ -362,7 +362,7 @@ func (cmd *AddCmd) RunAddSync(cobraCmd *cobra.Command, args []string) {
362362
363363// RunAddPort executes the add port command logic
364364func (cmd * AddCmd ) RunAddPort (cobraCmd * cobra.Command , args []string ) {
365- config := configutil .GetConfig (false )
365+ config := configutil .GetConfig ()
366366
367367 if cmd .portFlags .Selector == "" {
368368 cmd .portFlags .Selector = "release=" + * config .DevSpace .Release .Name
@@ -390,7 +390,7 @@ func (cmd *AddCmd) RunAddPort(cobraCmd *cobra.Command, args []string) {
390390}
391391
392392func (cmd * AddCmd ) insertOrReplacePortMapping (labelSelectorMap map [string ]* string , portMappings []* v1.PortMapping ) {
393- config := configutil .GetConfig (false )
393+ config := configutil .GetConfig ()
394394
395395 // Check if we should add to existing port mapping
396396 for _ , v := range * config .DevSpace .PortForwarding {
@@ -411,7 +411,7 @@ func (cmd *AddCmd) insertOrReplacePortMapping(labelSelectorMap map[string]*strin
411411 }
412412 }
413413 portMap := append (* config .DevSpace .PortForwarding , & v1.PortForwardingConfig {
414- ResourceType : configutil . String ( cmd . portFlags . ResourceType ) ,
414+ ResourceType : nil ,
415415 LabelSelector : & labelSelectorMap ,
416416 PortMappings : & portMappings ,
417417 })
0 commit comments