From 49d0da5e82263ad2f6b60b179e462a8a475f42ca Mon Sep 17 00:00:00 2001 From: kjuulh Date: Tue, 6 Feb 2024 21:42:51 +0100 Subject: [PATCH] feat: add helm to kubectl Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service/kubectl.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/cuddle-ci/src/rust_service/kubectl.rs b/crates/cuddle-ci/src/rust_service/kubectl.rs index 7ac5cf1..4eb5d7a 100644 --- a/crates/cuddle-ci/src/rust_service/kubectl.rs +++ b/crates/cuddle-ci/src/rust_service/kubectl.rs @@ -39,6 +39,8 @@ impl DaggerMiddleware for Kubectl { .with_exec(vec!["apk", "add", "tar", "wget"]) .with_exec(vec!["sh", "-c", KUBESLICEDOWNLOAD]); + let helm = self.client.container().from("alpine/helm:3.11.1"); + Ok(container .with_file( "/usr/local/bin/kubectl", @@ -51,7 +53,8 @@ impl DaggerMiddleware for Kubectl { .with_file( "/usr/local/bin/kubectl-slice", kubeslice.file("/usr/local/bin/kubectl-slice"), - )) + ) + .with_file("/usr/local/bin/helm", helm.file("/usr/bin/helm"))) } }