add flux binary as requirement
Some checks failed
ci/woodpecker/pr/build-package Pipeline was successful
ci/woodpecker/pr/build-container Pipeline failed
ci/woodpecker/pr/docs unknown status

This commit is contained in:
Robert Kaussow 2024-01-06 14:34:54 +01:00
parent bc10b5c164
commit e835d4d914
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -17,6 +17,8 @@ ARG HELM_VERSION
ARG KUSTOMIZE_VERSION
ARG KUBECONFORM_VERSION
ARG POLARIS_VERSION
ARG FLUX_LOCAL_VERSION
ARG FLUX_VERSION
# renovate: datasource=github-releases depName=kubernetes/kubernetes
ENV KUBECTL_VERSION="${KUBECTL_VERSION:-v1.29.0}"
@ -32,6 +34,8 @@ ENV KUBECONFORM_VERSION="${KUBECONFORM_VERSION:-v0.6.4}"
ENV POLARIS_VERSION="${POLARIS_VERSION:-8.5.4}"
# renovate: datasource=pypi depName=flux-local
ENV FLUX_LOCAL_VERSION="${FLUX_LOCAL_VERSION:-4.2.2}"
# renovate: datasource=github-releases depName=fluxcd/flux2
ENV FLUX_VERSION="${FLUX_VERSION:-v2.2.1}"
ENV PIPX_HOME=/opt/pipx
ENV PIPX_BIN_DIR=/usr/local/bin
@ -52,6 +56,8 @@ RUN apk --update add curl tar bash python3 pipx findutils git && \
| tar xz -C /usr/local/bin kubeconform && \
curl -SsfL "https://github.com/FairwindsOps/polaris/releases/download/${POLARIS_VERSION}/polaris_${TARGETOS}_${TARGETARCH}.tar.gz" \
| tar xz -C /usr/local/bin polaris && \
curl -SsfL "https://github.com/fluxcd/flux2/releases/download/${FLUX_VERSION}/flux_${FLUX_VERSION##v}_{TARGETOS}_${TARGETARCH}.tar.gz" \
| tar xz -C /usr/local/bin flux && \
chmod 755 /usr/local/bin/kubectl && \
chmod 755 /usr/local/bin/kubectl-convert && \
chmod 755 /usr/local/bin/yq && \