1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 02:37:11 +00:00

Merge pull request #586 from marquiz/devel/verify-kustomize

scripts/test-infra: verify buildability of kustomize overlays
This commit is contained in:
Kubernetes Prow Robot 2021-08-26 11:30:21 -07:00 committed by GitHub
commit f307870347
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,16 @@
#!/bin/bash -e
# Install deps
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.36.0
gobinpath="$(go env GOPATH)/bin"
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.36.0
export PATH=$PATH:$(go env GOPATH)/bin
curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version v3.5.2
kubectl="$gobinpath/kubectl"
curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl"
chmod 755 "$kubectl"
# Run verify steps
make gofmt-verify
make ci-lint
@ -23,3 +28,13 @@ if ! git diff --quiet; then
echo "Deployment templates are not up-to-date. Run 'make templates' to update"
exit 1
fi
# Check that the kustomize overlays are buildable
for d in `ls deployment/overlays/* -d`; do
if [ "`basename $d`" = "samples" ]; then
continue
fi
echo "Verifying $d"
kubectl kustomize $d > /dev/null
done