File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ lint:
123
123
misspell -error docs
124
124
golangci-lint run --new-from-rev ed7c302fd968 --build-tags netgo --timeout=5m --enable golint --enable misspell --enable gofmt
125
125
126
+ # Validate Kubernetes spec files. Requires:
127
+ # https://kubeval.instrumenta.dev
128
+ kubeval ./k8s/*
129
+
126
130
test :
127
131
./tools/test -netgo
128
132
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ RUN GO111MODULE=on go get -tags netgo \
20
20
github.com/gogo/protobuf/
[email protected] && \
21
21
rm -rf /go/pkg /go/src
22
22
23
+ ENV KUBEVAL_VERSION=0.14.0
24
+ RUN curl -Ls https://github.com/instrumenta/kubeval/releases/download/${KUBEVAL_VERSION}/kubeval-linux-amd64.tar.gz -o /tmp/kubeval-linux-amd64.tar.gz && \
25
+ tar -xf /tmp/kubeval-linux-amd64.tar.gz -C /tmp && \
26
+ cp /tmp/kubeval /usr/local/bin && \
27
+ rm -f /tmp/kubeval*
28
+
23
29
ENV NODE_PATH=/usr/lib/node_modules
24
30
COPY build.sh /
25
31
ENV GOCACHE=/go/cache
You can’t perform that action at this time.
0 commit comments