Skip to content

Commit

Permalink
chore: use k3s-default as cluster and drop it from GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Shyukri Shyukriev <[email protected]>
  • Loading branch information
shyukri committed Mar 29, 2024
1 parent 1aeb95b commit 82ee2e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ jobs:
- name: Create k3d registry and cluster
run: |
k3d registry create e2e-registry --port 5111
k3d cluster create e2e -i rancher/k3s:v1.27.10-k3s2 --registry-use k3d-e2e-registry:5111
k3d cluster create -i rancher/k3s:v1.27.10-k3s2 --registry-use k3d-e2e-registry:5111
echo '127.0.0.1 k3d-e2e-registry' | sudo tee -a /etc/hosts
- name: Run tests
run: |
export KUBECONFIG=$(k3d kubeconfig write e2e)
IMAGE_NAMESPACE=k3d-e2e-registry:5111 VERSION=${{ github.sha }} DOCKER_PUSH=true make start
EventBusDriver=${{ matrix.driver }} make test-functional
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ override LDFLAGS += -X ${PACKAGE}.gitTag=${GIT_TAG}
endif

K3D ?= $(shell [ "`command -v kubectl`" != '' ] && [ "`command -v k3d`" != '' ] && [[ "`kubectl config current-context`" =~ k3d-* ]] && echo true || echo false)
K3DCLUSTER?=e2e
K3DCLUSTER?=k3s-default

# Check that the needed executables are available, else exit before the build
K := $(foreach exec,$(EXECUTABLES), $(if $(shell which $(exec)),some string,$(error "No $(exec) in PATH")))
Expand Down

0 comments on commit 82ee2e4

Please sign in to comment.