Skip to content

Commit

Permalink
DEVOPS-7210: Set Helm v3 as default. (#29)
Browse files Browse the repository at this point in the history
* DEVOPS-7210: Set Helm v3 as default.
  • Loading branch information
Maxim Lavruk authored Jul 13, 2022
1 parent 8ae7c85 commit df21367
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ RUN apk --no-cache add curl bash make openssh jq ca-certificates git gettext gro
&& apk add git-crypt-0.6.0-r1.apk \
&& rm git-crypt-0.6.0-r1.apk

# TODO: kubectl officially support k8s +1 and -2 minor versions
# for now stable k8s is 1.17.1, for example on k8s-core we have k8s 1.13
RUN curl -sLo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
&& chmod +x /usr/local/bin/kubectl

ENV HELM_HOME /helm
RUN curl -s https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar -zxf - -C /usr/local/bin --strip-components=1 linux-amd64/helm
RUN curl -sLo /tmp/helm-v2.tar.gz https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz \
&& tar -zxf /tmp/helm-v2.tar.gz -C /tmp/ \
&& cp /tmp/linux-amd64/helm /usr/local/bin/helm2 \
&& rm -rf /tmp/linux-amd64/ /tmp/helm-v2.tar.gz

RUN curl -sLo /usr/local/bin/helmfile https://github.com/roboll/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_linux_amd64 \
&& chmod +x /usr/local/bin/helmfile
Expand All @@ -35,14 +35,16 @@ RUN wget https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VER
RUN curl -sLo /tmp/helm-v3.tar.gz https://get.helm.sh/helm-${HELM_V3_VERSION}-linux-amd64.tar.gz \
&& echo "${HELM_V3_SHA256} /tmp/helm-v3.tar.gz" | sha256sum -c - \
&& tar -zxf /tmp/helm-v3.tar.gz -C /tmp/ \
&& cp /tmp/linux-amd64/helm /usr/local/bin/helm3 \
&& cp /tmp/linux-amd64/helm /usr/local/bin/helm \
&& rm -rf /tmp/linux-amd64/ /tmp/helm-v3.tar.gz

RUN mkdir -p "$(helm home)/plugins" \
ENV HELM_HOME /helm

RUN mkdir -p "$(helm2 home)/plugins" \
&& helm plugin install https://github.com/databus23/helm-diff --version="${HELM_DIFF_VERSION}" \
&& helm3 plugin install https://github.com/databus23/helm-diff --version="${HELM_DIFF_VERSION}" \
&& helm2 plugin install https://github.com/databus23/helm-diff --version="${HELM_DIFF_VERSION}" \
&& helm plugin install https://github.com/futuresimple/helm-secrets --version="${HELM_SECRET_VERSION}" \
&& helm3 plugin install https://github.com/futuresimple/helm-secrets --version="${HELM_SECRET_VERSION}" \
&& helm2 plugin install https://github.com/futuresimple/helm-secrets --version="${HELM_SECRET_VERSION}" \
&& rm -rf /tmp/helm-diff /tmp/helm-diff.tgz

RUN curl -L -o aws-iam-authenticator_${AWS_IAM_AUTH_VERSION}_linux_amd64 https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v${AWS_IAM_AUTH_VERSION}/aws-iam-authenticator_${AWS_IAM_AUTH_VERSION}_linux_amd64 \
Expand Down

0 comments on commit df21367

Please sign in to comment.