File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
pkg/microservice/aslan/core/service/service Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -746,6 +746,11 @@ func createOrUpdateHelmServiceFromChartTemplate(templateArgs *CreateFromChartTem
746746 return nil , err
747747 }
748748
749+ loadPath := ""
750+ if args .ValuesData != nil && args .ValuesData .GitRepoConfig != nil && len (args .ValuesData .GitRepoConfig .ValuesPaths ) > 0 {
751+ loadPath = args .ValuesData .GitRepoConfig .ValuesPaths [0 ]
752+ }
753+
749754 svc , errCreate := createOrUpdateHelmService (
750755 fsTree ,
751756 & helmServiceCreationArgs {
@@ -767,7 +772,7 @@ func createOrUpdateHelmServiceFromChartTemplate(templateArgs *CreateFromChartTem
767772 AutoSync : args .AutoSync ,
768773 Production : args .Production ,
769774 // TODO: FIX valuePaths, it should be a single value in some situation
770- LoadPath : args . ValuesData . GitRepoConfig . ValuesPaths [ 0 ] ,
775+ LoadPath : loadPath ,
771776 }, force ,
772777 logger ,
773778 )
You can’t perform that action at this time.
0 commit comments