From dc7f1865612fdba20e7f7ceb7ffe9e6dcf566ab6 Mon Sep 17 00:00:00 2001 From: levtomer66 Date: Wed, 13 Dec 2023 13:54:02 +0200 Subject: [PATCH] Fix helm remove duplicate plugins for versions >= 3.10.x --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1859230..a633240 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ RUN curl -L "https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz" -o he && helm plugin install https://github.com/nouney/helm-gcs.git --version=${GCS_PLUGIN_VERSION} \ && helm plugin install https://github.com/chartmuseum/helm-push.git --version=${PUSH_PLUGIN_VERSION} \ && helm plugin install https://github.com/databus23/helm-diff --version=${HELM_DIFF_VERSION} \ - && bash -c 'if [[ "${HELM_VERSION}" > "3.3.1" ]]; then \ + && bash -c 'if [[ "$HELM_VERSION" = "`echo -e "$HELM_VERSION\n3.3.1" | sort -V -r | head -n1`" ]]; then \ rm -rf /root/.helm/helm/plugins/https-github.com-hypnoglow-helm-s3.git; \ rm -rf /root/.helm/helm/plugins/https-github.com-nouney-helm-gcs.git; \ rm -rf /root/.helm/helm/plugins/https-github.com-chartmuseum-helm-push.git; \