Merge pull request #3600 from natasha41575/TestExamplesAgainst4.0

Test examples against 4.0
This commit is contained in:
Jeff Regan
2021-02-13 12:47:30 -08:00
committed by GitHub
2 changed files with 11 additions and 9 deletions

View File

@@ -26,8 +26,8 @@ verify-kustomize: \
lint-kustomize \
test-unit-kustomize-all \
test-examples-kustomize-against-HEAD \
test-examples-kustomize-against-3.9 \
test-examples-kustomize-against-3.8
test-examples-kustomize-against-4.0 \
test-examples-kustomize-against-3.10
# The following target referenced by a file in
# https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/kustomize
@@ -39,8 +39,8 @@ prow-presubmit-check: \
test-unit-cmd-all \
test-go-mod \
test-examples-kustomize-against-HEAD \
test-examples-kustomize-against-3.9 \
test-examples-kustomize-against-3.8
test-examples-kustomize-against-4.0 \
test-examples-kustomize-against-3.10
.PHONY: verify-kustomize-e2e
verify-kustomize-e2e: test-examples-e2e-kustomize
@@ -281,12 +281,12 @@ test-examples-kustomize-against-HEAD: $(MYGOBIN)/kustomize $(MYGOBIN)/mdrip
./hack/testExamplesAgainstKustomize.sh HEAD
.PHONY:
test-examples-kustomize-against-3.9: $(MYGOBIN)/mdrip
./hack/testExamplesAgainstKustomize.sh v3.9.3
test-examples-kustomize-against-4.0: $(MYGOBIN)/mdrip
./hack/testExamplesAgainstKustomize.sh v4.0.0
.PHONY:
test-examples-kustomize-against-3.8: $(MYGOBIN)/mdrip
./hack/testExamplesAgainstKustomize.sh v3.8.10
test-examples-kustomize-against-3.10: $(MYGOBIN)/mdrip
./hack/testExamplesAgainstKustomize.sh v3.10.0
# linux only.
# This is for testing an example plugin that

View File

@@ -19,8 +19,10 @@ echo "Installing kustomize ${version}"
rm -f $(go env GOPATH)/bin/kustomize
if [ "$version" == "HEAD" ]; then
(cd kustomize; go install .)
elif [ "$version" == "v3.10.0" ]; then
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@v3.10.0
else
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v3@${version}
GO111MODULE=on go get sigs.k8s.io/kustomize/kustomize/v4@v4.0.0
fi
# TODO: change the label?