Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public InstallFluent createNamespace(final boolean createNamespace) {
return this;
}


public InstallFluent createNamespace() {
return createNamespace(true);
}

public void run(final String releaseName, final String chart) throws IOException, InterruptedException, ExecutionException {
try {
final List<String> cmdline = new ArrayList<>(asList("helm", "install"));
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/dajudge/kindcontainer/Helm3Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public Helm3Test(final KubernetesContainer<?> k8s) {

@Test
public void can_install_something() throws IOException, ExecutionException, InterruptedException {
final String namespace = k8s.withClient(TestUtils::createNewNamespace);
k8s.helm3().repo.add.run("mittwald", "https://helm.mittwald.de");
k8s.helm3().repo.update.run();
k8s.helm3().install
.namespace(namespace)
.namespace("kubernetes-replicator")
.createNamespace()
.run("kubernetes-replicator", "mittwald/kubernetes-replicator");
}
}