File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,14 +368,23 @@ func (cmd *UpCmd) startSync() []*synctool.SyncConfig {
368368 log .Panicf ("Unable to list devspace pods: %s" , err .Error ())
369369 } else if pod != nil {
370370 syncConfig := & synctool.SyncConfig {
371- Kubectl : cmd .kubectl ,
372- Pod : pod ,
373- Container : & pod .Spec .Containers [0 ],
374- WatchPath : absLocalPath ,
375- DestPath : * syncPath .ContainerPath ,
376- ExcludePaths : * syncPath .ExcludePaths ,
377- DownloadExcludePaths : * syncPath .DownloadExcludePaths ,
378- UploadExcludePaths : * syncPath .UploadExcludePaths ,
371+ Kubectl : cmd .kubectl ,
372+ Pod : pod ,
373+ Container : & pod .Spec .Containers [0 ],
374+ WatchPath : absLocalPath ,
375+ DestPath : * syncPath .ContainerPath ,
376+ }
377+
378+ if syncPath .ExcludePaths != nil {
379+ syncConfig .ExcludePaths = * syncPath .ExcludePaths
380+ }
381+
382+ if syncPath .DownloadExcludePaths != nil {
383+ syncConfig .DownloadExcludePaths = * syncPath .DownloadExcludePaths
384+ }
385+
386+ if syncPath .UploadExcludePaths != nil {
387+ syncConfig .UploadExcludePaths = * syncPath .UploadExcludePaths
379388 }
380389
381390 err = syncConfig .Start ()
You can’t perform that action at this time.
0 commit comments