forked from flyteorg/flyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added flytectl in place of kind in end2end test (flyteorg#293)
* Added flytectl in place of kind in end2end test Signed-off-by: Yuvraj <[email protected]> * wip: Added manual change in boilerplate script Signed-off-by: Yuvraj <[email protected]> * Fix integration test Signed-off-by: Yuvraj <[email protected]> * Revert registry name in ci Signed-off-by: Yuvraj <[email protected]> * revert integration test Signed-off-by: Yuvraj <[email protected]>
- Loading branch information
Showing
4 changed files
with
29 additions
and
28 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 |
---|---|---|
|
@@ -40,24 +40,33 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: unionai/[email protected] | ||
name: Setup flytectl | ||
- id: load-docker-cache | ||
name: Load Docker Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: /tmp/tmp/docker-images | ||
key: /tmp/docker-images-${{ github.event.after }} | ||
- name: Create Sandbox Cluster | ||
run: | | ||
cp /tmp/tmp/docker-images/snapshot.tar snapshot.tar | ||
flytectl config init | ||
flytectl sandbox start --source=$(pwd) | ||
- name: Prime docker cache | ||
run: docker load -i /tmp/tmp/docker-images/snapshot.tar || true | ||
- uses: engineerd/[email protected] | ||
with: | ||
version: "v0.11.1" | ||
run: | | ||
flytectl sandbox exec -- docker load -i /root/snapshot.tar | ||
- name: Upgrade Helm charts | ||
run: flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml /flyteorg/share/flyte -f /flyteorg/share/flyte/values-sandbox.yaml --set flyteadmin.image.repository=flyteorg/flyteadmin,flyteadmin.image.tag=latest | ||
- name: End2End | ||
env: | ||
KUBECONFIG: /home/runner/.flyte/k3s/k3s.yaml | ||
run: | | ||
kubectl cluster-info | ||
kubectl get pods -n kube-system | ||
echo "current-context:" $(kubectl config current-context) | ||
echo "environment-kubeconfig:" ${KUBECONFIG} | ||
IMAGE_NAME=${{ github.event.repository.name }} IMAGE=flyteorg/${{ github.event.repository.name }}:latest make end2end_execute | ||
make end2end_execute | ||
bump-version: | ||
name: Bump Version | ||
|
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 |
---|---|---|
|
@@ -50,24 +50,33 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- uses: unionai/[email protected] | ||
name: Setup flytectl | ||
- id: load-docker-cache | ||
name: Load Docker Cache | ||
uses: actions/cache@v1 | ||
with: | ||
path: /tmp/tmp/docker-images | ||
key: /tmp/docker-images-${{ github.event.after }} | ||
- name: Create Sandbox Cluster | ||
run: | | ||
cp /tmp/tmp/docker-images/snapshot.tar snapshot.tar | ||
flytectl config init | ||
flytectl sandbox start --source=$(pwd) | ||
- name: Prime docker cache | ||
run: docker load -i /tmp/tmp/docker-images/snapshot.tar || true | ||
- uses: engineerd/[email protected] | ||
with: | ||
version: "v0.11.1" | ||
run: | | ||
flytectl sandbox exec -- docker load -i /root/snapshot.tar | ||
- name: Upgrade Helm charts | ||
run: flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml /flyteorg/share/flyte -f /flyteorg/share/flyte/values-sandbox.yaml --set flyteadmin.image.repository=flyteorg/flyteadmin,flyteadmin.image.tag=latest | ||
- name: End2End | ||
env: | ||
KUBECONFIG: /home/runner/.flyte/k3s/k3s.yaml | ||
run: | | ||
kubectl cluster-info | ||
kubectl get pods -n kube-system | ||
echo "current-context:" $(kubectl config current-context) | ||
echo "environment-kubeconfig:" ${KUBECONFIG} | ||
IMAGE_NAME=${{ github.event.repository.name }} IMAGE=flyteorg/${{ github.event.repository.name }}:latest make end2end_execute | ||
make end2end_execute | ||
integration: | ||
name: Integration tests | ||
|
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