-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: bump k8s packages to 1.17.8 (#42)
- Loading branch information
Showing
8 changed files
with
487 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,24 +14,25 @@ test: generate fmt vet manifests | |
|
||
# Start KIND pseudo-cluster | ||
kind-start: | ||
GO111MODULE=on go get "sigs.k8s.io/[email protected]" && kind create cluster | ||
KUBECONFIG=$(shell kind get kubeconfig-path --name="kind") | ||
GO111MODULE=on go get "sigs.k8s.io/[email protected]" && kind create cluster | ||
|
||
# Stop KIND pseudo-cluster | ||
kind-stop: | ||
GO111MODULE=on go get "sigs.k8s.io/kind@v0.4.0" && kind delete cluster | ||
GO111MODULE=on go get "sigs.k8s.io/kind@v0.7.0" && kind delete cluster | ||
|
||
# Deploy on KIND | ||
# Ensures the controller image is built, deploys the image to KIND cluster along with necessary configuration | ||
kind-deploy: manager manifests docker-build-notest kind-start | ||
kubectl config set-context kind-kind | ||
kind load docker-image controller:latest | ||
KUBECONFIG=$(KUBECONFIG) kubectl apply -f config/crd/bases | ||
kustomize build config/default | KUBECONFIG=$(KUBECONFIG) kubectl apply -f - | ||
kubectl apply -f config/crd/bases | ||
kustomize build config/default | kubectl apply -f - | ||
|
||
# private | ||
kind-test: kind-deploy | ||
kubectl config set-context kind-kind | ||
go get github.com/onsi/ginkgo/ginkgo | ||
KUBECONFIG=$(KUBECONFIG) ginkgo -v ./tests/integration/... | ||
ginkgo -v ./tests/integration/... | ||
|
||
# Run integration tests on local KIND cluster | ||
test-integration: | ||
|
@@ -86,7 +87,7 @@ docker-push: | |
# download controller-gen if necessary | ||
controller-gen: | ||
ifeq (, $(shell which controller-gen)) | ||
go get sigs.k8s.io/controller-tools/cmd/[email protected].0-beta.2 | ||
go get sigs.k8s.io/controller-tools/cmd/[email protected].9 | ||
CONTROLLER_GEN=$(shell which controller-gen) | ||
else | ||
CONTROLLER_GEN=$(shell which controller-gen) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters