HelmUpgrade extends HelmCommand<HelmUpgrade> implements CLI.WithCerts<HelmUpgrade>,
                   CLI.WithTLS<HelmUpgrade>,
                   CLI.WithRepo<HelmUpgrade> { public HelmUpgrade values(String valuesFile) { return withFlags(Argument.of("--values", valuesFile)); } HelmUpgrade(String release, File chart);   HelmUpgrade(String release, String chart);   HelmUpgrade(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmUpgrade development(); HelmUpgrade dryRun(); HelmUpgrade force(); HelmUpgrade install(); HelmUpgrade name(String name); HelmUpgrade nameTemplate(String template); HelmUpgrade namespace(String namespace); HelmUpgrade noHooks(); HelmUpgrade replace(); HelmUpgrade repo(String repo); HelmUpgrade set(String... values); HelmUpgrade timeout(int seconds); HelmUpgrade values(String valuesFile); HelmUpgrade values(File valuesFile); HelmUpgrade version(String version); HelmUpgrade waitForK8s(); HelmUpgrade waitForK8s(int seconds); @Override HelmUpgrade newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddValuesOption() { HelmUpgrade command = Helm.upgrade("foo-release", "foo-chart"); HelmUpgrade copy = command.values("bar"); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "upgrade", "foo-release", "foo-chart", "--values", "bar"); }
@Test public void shouldAddValuesFileOption() { HelmUpgrade command = Helm.upgrade("foo-release", "foo-chart"); HelmUpgrade copy = command.values(new File("/tmp")); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "upgrade", "foo-release", "foo-chart", "--values", "/tmp"); }