Skip to content

Commit

Permalink
kind context is switched to cluster $KIND_CLUSTER_NAME
Browse files Browse the repository at this point in the history
Signed-off-by: lrangine <[email protected]>
  • Loading branch information
lokeshrangineni committed Nov 14, 2024
1 parent 27f1497 commit 0d9a211
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/operator-e2e-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
--privileged
env:
KIND_CLUSTER_NAME: "operator-e2e-cluster"
KIND_CLUSTER: "operator-e2e-cluster"
NAMESPACE: "test-namespace"
KIND_CLUSTER: "kind-operator-e2e-cluster"
#KIND_CLUSTER: "kind-operator-e2e-cluster"

steps:
- name: Checkout code
Expand All @@ -47,12 +47,12 @@ jobs:

- name: Create KIND cluster
run: |
kind create cluster --name $KIND_CLUSTER_NAME --wait 5m
kind create cluster --name $KIND_CLUSTER --wait 5m
- name: Set up kubeconfig
run: |
kubectl config use-context $KIND_CLUSTER
echo "kind context is switched to cluster $KIND_CLUSTER"
kubectl config use-context kind-$KIND_CLUSTER
echo "kind context is switched to cluster kind-$KIND_CLUSTER"
# - name: Load Docker image into KIND cluster
# run: |
Expand All @@ -77,4 +77,4 @@ jobs:
if: always()
run: |
# Delete the KIND cluster after tests
kind delete cluster --name $KIND_CLUSTER_NAME
kind delete cluster --name kind-$KIND_CLUSTER
2 changes: 1 addition & 1 deletion infra/feast-operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ test: build-installer fmt vet lint envtest ## Run tests.
# Utilize Kind or modify the e2e tests to load the image locally, enabling compatibility with other vendors.
.PHONY: test-e2e # Run the e2e tests against a Kind k8s instance that is spun up.
test-e2e:
KIND_CLUSTER=operator-e2e-cluster go test ./test/e2e/ -v -ginkgo.v
go test ./test/e2e/ -v -ginkgo.v

.PHONY: lint
lint: golangci-lint ## Run golangci-lint linter & yamllint
Expand Down

0 comments on commit 0d9a211

Please sign in to comment.