@@ -6,9 +6,11 @@ ARG HELM_VERSION=4.1.1
66# Kubeval does not have tags, so we use a commit
77ARG HELM_KUBEVAL_VERSION=7476464
88ARG HELM_VALUES_VERSION=1.2.0
9+ ARG HELM_KUBECONFORM_VERSION=v0.2.0
910
1011# Make helm install everything in defined folder
1112ENV HOME=/helm
13+ ENV HELM_PLUGINS=${HOME}/.local/share/helm/plugins
1214
1315RUN apk add --no-cache curl git bash gnupg outils-sha256
1416
@@ -30,6 +32,9 @@ RUN git clone -n https://github.com/instrumenta/helm-kubeval ${HOME}/.local/shar
3032 HELM_PLUGIN_DIR=$(pwd) scripts/install.sh && \
3133 rm -rf .git
3234
35+ # install helm-kubeconform
36+ RUN helm plugin install https://github.com/jtyr/kubeconform-helm --version ${HELM_KUBECONFORM_VERSION} || helm plugin install https://github.com/jtyr/kubeconform-helm --version ${HELM_KUBECONFORM_VERSION} --verify=false
37+
3338# install helm-values
3439RUN git clone --depth 1 --branch ${HELM_VALUES_VERSION} https://github.com/shihyuho/helm-values /tmp/helm-values
3540# helm 3 removed the option "home" to get helms home-path, so "helm home" won't work with helm 3
@@ -56,9 +61,9 @@ ENV HELM_CACHE_HOME="/helm/.cache/helm" \
5661 HELM_REGISTRY_CONFIG="/helm/.config/helm/registry.json" \
5762 HELM_REPOSITORY_CACHE="/helm/.cache/helm/repository" \
5863 HELM_REPOSITORY_CONFIG="/helm/.config/helm/repositories.yaml" \
59- PATH="/helm/.local/share/helm/plugins/helm-kubeval/bin:$PATH"
64+ PATH="/helm/.local/share/helm/plugins/helm-kubeval/bin:/helm/.local/share/helm/plugins/kubeconform-helm/bin: $PATH"
6065
61- RUN apk add --update --no-cache ca-certificates curl git openssl bash
66+ RUN apk add --update --no-cache ca-certificates curl git openssl bash python3 py3-yaml
6267COPY --from=builder /dist /
6368
6469ENTRYPOINT ["helm" ]
0 commit comments