File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ RUN curl -LO "https://get.helm.sh/helm-v3.7.0-linux-amd64.tar.gz" && \
2020
2121RUN apk add --no-cache git
2222
23- RUN curl -LO "https://github.com/kubernetes-sigs/kustomize/releases/latest/download/kustomize_linux_amd64" && \
24- chmod +x kustomize_linux_amd64 && \
25- mv kustomize_linux_amd64 /usr/local/bin/kustomize
23+ RUN curl -LO "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v4.4.0/kustomize_v4.4.0_linux_amd64.tar.gz" && \
24+ tar xf kustomize_v4.4.0_linux_amd64.tar.gz && \
25+ rm kustomize_v4.4.0_linux_amd64.tar.gz && \
26+ mv kustomize /usr/local/bin/kustomize
27+
2628
2729COPY entrypoint.sh /entrypoint.sh
2830RUN chmod +x /entrypoint.sh
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ inputs:
1010 required : true
1111runs :
1212 using : " docker"
13- image : " Dockerfile "
13+ image : " dhrubajyotichakraborty/kubeval-validation:1.0.2 "
Original file line number Diff line number Diff line change @@ -8,8 +8,12 @@ directory=$INPUT_DIRECTORY
88# Validate Kubernetes manifest files
99kubeval --strict $directory /* .yaml
1010
11- # Validate Helm charts
12- helm lint $directory /charts
11+ # Validate Helm charts if the 'charts' directory exists
12+ if [ -d " $directory /charts" ]; then
13+ helm lint $directory /charts
14+ fi
1315
14- # Validate Kustomize overlays
15- kustomize build $directory /kustomize
16+ # Validate Kustomize overlays if the 'kustomize' directory exists
17+ if [ -d " $directory /kustomize" ]; then
18+ kustomize build $directory /kustomize
19+ fi
You can’t perform that action at this time.
0 commit comments