HelmInstall extends HelmCommand<HelmInstall> implements CLI.WithCerts<HelmInstall>,
                   CLI.WithTLS<HelmInstall>,
                   CLI.WithRepo<HelmInstall> { public HelmInstall set(String... values) { if (values == null || values.length == 0) { return this; } String valueString = Arrays.stream(values) .collect(Collectors.joining(",")); return withFlags(Argument.of("--set", valueString)); } HelmInstall(File chart);   HelmInstall(String chart);   HelmInstall(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env); HelmInstall development(); HelmInstall dryRun(); HelmInstall name(String name); HelmInstall nameTemplate(String template); HelmInstall namespace(String namespace); HelmInstall noHooks(); HelmInstall replace(); HelmInstall repo(String repo); HelmInstall set(String... values); HelmInstall timeout(int seconds); HelmInstall values(String valuesFile); HelmInstall values(File valuesFile); HelmInstall version(String version); HelmInstall waitForK8s(); HelmInstall waitForK8s(int seconds); @Override HelmInstall newInstance(String helm, Arguments arguments, Arguments flags, EnvironmentVariables env);  }
@Test public void shouldAddSetOption() { HelmInstall command = Helm.install("foo"); HelmInstall copy = command.set("bar1", "bar2"); assertThat(copy, is(not(sameInstance(command)))); assertCommand(copy, "install", "foo", "--set", "bar1,bar2"); }
@Test public void shouldAddSetOptionWithoutValues() { HelmInstall command = Helm.install("foo"); HelmInstall copy = command.set(); assertThat(copy, is(sameInstance(command))); }