Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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