Skip to content

Commit

Permalink
Merge pull request #412 from KevFan/kind
Browse files Browse the repository at this point in the history
kind: bump to v0.20.0 & use bin/kind binary for makefile commands
  • Loading branch information
guicassolato authored Jul 12, 2023
2 parents a27b2a0 + b9d035f commit b0101ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install jq
run: sudo apt-get install jq
- name: Install kind
run: go install sigs.k8s.io/kind@v0.11.1
run: go install sigs.k8s.io/kind@v0.20.0
- name: Create kind cluster
run: kind create cluster --name authorino-smoke-tests
- name: Install cert-manager
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ benchstat: ## Installs benchstat in $PROJECT_DIR/bin

KIND = $(PROJECT_DIR)/bin/kind
kind: ## Installs kind in $PROJECT_DIR/bin
$(call go-get-tool,$(KIND),sigs.k8s.io/kind@v0.11.1)
$(call go-get-tool,$(KIND),sigs.k8s.io/kind@v0.20.0)

ifeq ($(shell uname),Darwin)
SED=$(shell which gsed)
Expand Down Expand Up @@ -245,10 +245,10 @@ deploy: certs sed ## Deploys an instance of Authorino into the Kubernetes cluste

KIND_CLUSTER_NAME ?= authorino
cluster: kind ## Starts a local Kubernetes cluster using Kind
kind create cluster --name $(KIND_CLUSTER_NAME)
$(KIND) create cluster --name $(KIND_CLUSTER_NAME)

local-build: kind docker-build ## Builds an image based on the current branch and pushes it to the registry into the local Kubernetes cluster started with Kind
kind load docker-image $(AUTHORINO_IMAGE) --name $(KIND_CLUSTER_NAME)
$(KIND) load docker-image $(AUTHORINO_IMAGE) --name $(KIND_CLUSTER_NAME)

local-setup: cluster local-build cert-manager install-operator install namespace deploy user-apps ## Sets up a test/dev local Kubernetes server using Kind, loaded up with a freshly built Authorino image and apps
kubectl -n $(NAMESPACE) wait --timeout=300s --for=condition=Available deployments --all
Expand All @@ -262,4 +262,4 @@ local-rollout: local-build ## Rebuilds and pushes the docker image to the local
kubectl -n $(NAMESPACE) rollout restart deployment/authorino

local-cleanup: kind ## Deletes the local Kubernetes cluster started using Kind
kind delete cluster --name $(KIND_CLUSTER_NAME)
$(KIND) delete cluster --name $(KIND_CLUSTER_NAME)

0 comments on commit b0101ed

Please sign in to comment.