@@ -108,9 +108,11 @@ 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 }
115117 // Upgrade options
116118 args = append (args , helmConfig .UpgradeArgs ... )
@@ -189,9 +191,11 @@ func (c *client) Template(ctx devspacecontext.Context, releaseName, releaseNames
189191 }
190192
191193 // Update dependencies if needed
192- stat , err := os .Stat (chartPath )
193- if err == nil && stat .IsDir () {
194- 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+ }
195199 }
196200 args = append (args , helmConfig .TemplateArgs ... )
197201 result , err := c .genericHelm .Exec (ctx , args )
0 commit comments