Skip to content

Commit

Permalink
update GitHub flow for e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce-Huang <[email protected]>
  • Loading branch information
Bryce-huang committed Oct 17, 2023
1 parent 66ed784 commit d5372e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,17 +135,19 @@ jobs:
- name: Install OpenFunction
run: |
# Install CRDs
make install
kubectl apply -f https://openfunction.sh1a.qingstor.com/crds/gateway-api-v0.8.0.yaml
# Install OpenFunction Chart
helm repo add openfunction https://openfunction.github.io/charts/
helm repo update
helm install openfunction openfunction/openfunction -n openfunction --create-namespace --devel -f "${GITHUB_WORKSPACE}"/.github/workflows/values
# Reinstall OpenFunction Controllers
make undeploy
sleep 20
make deploy-e2e
sleep 60
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v1
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v1

- name: Wait for kafka to be ready
run: |
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/default | kubectl apply --server-side=true --force-conflicts -f -

deploy-e2e: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/default |sed -e 's#openfunction/openfunction:latest#kind-registry:5000/openfunction/openfunction:latest#g' |kubectl apply --server-side=true --force-conflicts -f -

undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/default | kubectl delete -f -

Expand Down

0 comments on commit d5372e8

Please sign in to comment.