@@ -108,11 +108,12 @@ func (c *client) InstallChart(ctx devspacecontext.Context, releaseName string, r
108108 }
109109
110110 // Update dependencies if needed
111- stat , err := os .Stat (chartPath )
112- if err == nil && stat .IsDir () {
113- args = append (args , "--dependency-update" )
111+ if helmConfig .DisableDependencyUpdate == nil || (helmConfig .DisableDependencyUpdate != nil && ! * helmConfig .DisableDependencyUpdate ) {
112+ stat , err := os .Stat (chartPath )
113+ if err == nil && stat .IsDir () {
114+ args = append (args , "--dependency-update" )
115+ }
114116 }
115-
116117 // Upgrade options
117118 args = append (args , helmConfig .UpgradeArgs ... )
118119 output , err := c .genericHelm .Exec (ctx , args )
@@ -190,11 +191,12 @@ func (c *client) Template(ctx devspacecontext.Context, releaseName, releaseNames
190191 }
191192
192193 // Update dependencies if needed
193- stat , err := os .Stat (chartPath )
194- if err == nil && stat .IsDir () {
195- args = append (args , "--dependency-update" )
194+ if helmConfig .DisableDependencyUpdate == nil || (helmConfig .DisableDependencyUpdate != nil && ! * helmConfig .DisableDependencyUpdate ) {
195+ stat , err := os .Stat (chartPath )
196+ if err == nil && stat .IsDir () {
197+ args = append (args , "--dependency-update" )
198+ }
196199 }
197-
198200 args = append (args , helmConfig .TemplateArgs ... )
199201 result , err := c .genericHelm .Exec (ctx , args )
200202 if err != nil {
0 commit comments