From d2de8c2b13d7a22e88aa40db329c039e6d091f68 Mon Sep 17 00:00:00 2001 From: Nikita Korolev Date: Tue, 16 Apr 2024 22:25:02 +0300 Subject: [PATCH] chore: run one e2e test Signed-off-by: Nikita Korolev --- .github/workflows/e2e.yaml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index d3b313059..fb60d42f4 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -2,6 +2,7 @@ name: e2e env: CI_COMMIT_REF_NAME: ${{ github.ref_name }} + # E2E_CLUSTERTRANSPORT_TOKEN: ${{ secrets.E2E_VIRTUALIZATION_SA_TOKEN }} on: pull_request: @@ -22,7 +23,7 @@ concurrency: jobs: show_dev_manifest: runs-on: ubuntu-latest - name: Show manifest + name: Run e2e steps: - name: Install Task uses: arduino/setup-task@v2 @@ -38,13 +39,23 @@ jobs: method: service-account k8s-url: https://api.e2e.virtlab.flant.com k8s-secret: ${{ secrets.E2E_VIRTUALIZATION_SA_SECRET }} - # token: ${{ secrets.E2E_VIRTUALIZATION_SA_TOKEN }} - - name: Create Namespace + - name: e2e run: | - kubectl create namespace testgh + kubectl config view -o jsonpath='{"Cluster name\tServer\n"}{range .clusters[*]}{.name}{"\t"}{.cluster.server}{"\n"}{end}' + export CLUSTER_NAME="e2e-cluster" + export E2E_CLUSTERTRANSPORT_ENDPOINT=$(kubectl config view -o jsonpath="{.clusters[?(@.name==\"$CLUSTER_NAME\")].cluster.server}") + export E2E_CLUSTERTRANSPORT_TOKEN=${{ secrets.E2E_VIRTUALIZATION_SA_TOKEN }} + echo ${{ secrets.E2E_VIRTUALIZATION_SA_TOKEN }} | yq e '.data."ca.crt"' > ca.crt + export E2E_CLUSTERTRANSPORT_CERTIFICATEAUTHORITY="$PWD/ca.crt" + export E2E_CLUSTERTRANSPORT_INSECURETLS="true" + + task e2e:run_one TEST="Label and Annotation" + # - name: Create Namespace + # run: | + # kubectl create namespace testgh - - name: Get ns and delete - run: | - kubectl get ns | grep testgh - kubectl delete namespace testgh + # - name: Get ns and delete + # run: | + # kubectl get ns | grep testgh + # kubectl delete namespace testgh