From 9e580823422c8a95f5a983cc0e487fcf509ef2f5 Mon Sep 17 00:00:00 2001 From: aperigault Date: Mon, 10 Jan 2022 08:55:00 +0100 Subject: [PATCH] Allow users other than root to use helm plugins (#1766) Resolves #1134 Co-authored-by: Antony Perigault --- Dockerfile | 3 +++ Dockerfile.helm3 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index ed94c036..9b745c74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,6 +51,9 @@ RUN helm plugin install https://github.com/databus23/helm-diff --version v3.3.1 helm plugin install https://github.com/hypnoglow/helm-s3.git --version v0.10.0 && \ helm plugin install https://github.com/aslafy-z/helm-git.git --version v0.10.0 +# Allow users other than root to use helm plugins located in root home +RUN chmod 751 /root + COPY --from=builder /workspace/helmfile/dist/helmfile_linux_amd64 /usr/local/bin/helmfile CMD ["/usr/local/bin/helmfile"] diff --git a/Dockerfile.helm3 b/Dockerfile.helm3 index f51ca85d..0f22f8ee 100644 --- a/Dockerfile.helm3 +++ b/Dockerfile.helm3 @@ -50,6 +50,9 @@ RUN helm plugin install https://github.com/databus23/helm-diff --version v3.3.1 helm plugin install https://github.com/hypnoglow/helm-s3.git --version v0.10.0 && \ helm plugin install https://github.com/aslafy-z/helm-git.git --version v0.10.0 +# Allow users other than root to use helm plugins located in root home +RUN chmod 751 /root + COPY --from=builder /workspace/helmfile/dist/helmfile_linux_amd64 /usr/local/bin/helmfile CMD ["/usr/local/bin/helmfile"]