@@ -79,7 +79,8 @@ type Git interface {
7979// InstallWithValues runs `helm install` for the given chart using the specified values file.
8080// Pass a zero value for valuesFile in order to run install without specifying a values file.
8181//
82- // Upgrade runs `helm upgrade` against an existing release, and re-uses the previously computed values.
82+ // UpgradeWithValues runs `helm upgrade` against an existing release using the specified values file.
83+ // Pass a zero value for valuesFile in order to run install without specifying a values file.
8384//
8485// Test runs `helm test` against an existing release. Set the cleanup argument to true in order
8586// to clean up test pods created by helm after the test command completes.
@@ -91,7 +92,7 @@ type Helm interface {
9192 BuildDependenciesWithArgs (chart string , extraArgs []string ) error
9293 LintWithValues (chart string , valuesFile string ) error
9394 InstallWithValues (chart string , valuesFile string , namespace string , release string ) error
94- Upgrade (chart string , namespace string , release string ) error
95+ UpgradeWithValues (chart string , valuesFile string , namespace string , release string ) error
9596 Test (namespace string , release string ) error
9697 DeleteRelease (namespace string , release string )
9798 Version () (string , error )
@@ -660,7 +661,7 @@ func (t *Testing) doUpgrade(oldChart, newChart *Chart, oldChartMustPass bool) er
660661 return nil
661662 }
662663
663- if err := t .helm .Upgrade (newChart .Path (), namespace , release ); err != nil {
664+ if err := t .helm .UpgradeWithValues (newChart .Path (), valuesFile , namespace , release ); err != nil {
664665 return err
665666 }
666667
0 commit comments