diff --git a/Dockerfile b/Dockerfile index fc13cbd..f73f65f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,20 @@ RUN curl -LO "https://github.com/instrumenta/kubeval/releases/latest/download/ku rm kubeval-linux-amd64.tar.gz && \ mv kubeval /usr/local/bin/ +RUN apk add --no-cache ca-certificates + +RUN curl -LO "https://get.helm.sh/helm-v3.7.0-linux-amd64.tar.gz" && \ + tar xf helm-v3.7.0-linux-amd64.tar.gz && \ + rm helm-v3.7.0-linux-amd64.tar.gz && \ + mv linux-amd64/helm /usr/local/bin/ + +RUN apk add --no-cache git + +RUN curl -LO "https://github.com/kubernetes-sigs/kustomize/releases/latest/download/kustomize_linux_amd64" && \ + chmod +x kustomize_linux_amd64 && \ + mv kustomize_linux_amd64 /usr/local/bin/kustomize + COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] - +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index eaa1235..8715043 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,3 +7,9 @@ directory=$INPUT_DIRECTORY # Validate Kubernetes manifest files kubeval --strict $directory/*.yaml + +# Validate Helm charts +helm lint $directory/charts + +# Validate Kustomize overlays +kustomize build $directory/kustomize