From 41e08dbabc73a87615f76def5d81d32bc304b547 Mon Sep 17 00:00:00 2001 From: Yuvraj Date: Wed, 24 Nov 2021 20:18:34 +0530 Subject: [PATCH] Added flytectl sandbox for running end2end (#1860) * Added flytectl sandbox for running end2end Signed-off-by: Yuvraj * Added flytectl sandbox for running end2end Signed-off-by: Yuvraj * Added flytectl sandbox for running end2end Signed-off-by: Yuvraj * revert kustomize changes Signed-off-by: Yuvraj --- .github/workflows/tests.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 063dedf7bb..7af0376810 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,19 +53,21 @@ jobs: run: DELTA_CHECK=true make kustomize - name: Helm and diff run: DELTA_CHECK=true make helm - - uses: engineerd/setup-kind@v0.5.0 - with: - version: "v0.11.1" + - uses: unionai/flytectl-setup-action@v0.0.1 + name: Setup flytectl + - name: Create Sandbox Cluster + run: | + flytectl config init + flytectl sandbox start --source=$(pwd) + - name: Upgrade Helm charts + run: flytectl sandbox exec -- helm upgrade flyte -n flyte --kubeconfig=/etc/rancher/k3s/k3s.yaml /root/charts/flyte/ -f /root/charts/flyte/values-sandbox.yaml - name: End2End env: - DOCKER_USERNAME: ${{ github.actor }} - DOCKER_PASSWORD: "${{ secrets.GITHUB_TOKEN }}" + 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} # launch flyte end2end - make helm_update - make helm_install make end2end_execute