Fix Helm test having run subcommand with helm3 (#1023)

It looks like during the beta phase the testing functionality was tweaked / changed back during the beta phase but has since been returned back to how it worked originally.

RE: a6f4bc1bc0
Signed-off-by: Jake Hill <jake@naphta.uk>
This commit is contained in:
Jake Hill 2019-12-11 00:20:41 +00:00 committed by KUOKA Yusuke
parent 4b1b19f8a6
commit 03898b7a98
1 changed files with 1 additions and 6 deletions

View File

@ -302,12 +302,7 @@ func (helm *execer) TestRelease(context HelmContext, name string, flags ...strin
helm.logger.Infof("Testing %v", name) helm.logger.Infof("Testing %v", name)
preArgs := context.GetTillerlessArgs(helm) preArgs := context.GetTillerlessArgs(helm)
env := context.getTillerlessEnv() env := context.getTillerlessEnv()
var args []string args := []string{"test", name}
if helm.IsHelm3() {
args = []string{"test", "run", name}
} else {
args = []string{"test", name}
}
out, err := helm.exec(append(append(preArgs, args...), flags...), env) out, err := helm.exec(append(append(preArgs, args...), flags...), env)
helm.write(out) helm.write(out)
return err return err