From 8e85bb9895ef294309070d650eb0750bc9052663 Mon Sep 17 00:00:00 2001 From: liuhy Date: Sat, 19 Oct 2024 15:17:40 +0800 Subject: [PATCH] [type:feature] modify e2e k8s to docker compose, ci --- .github/workflows/e2e-k8s.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/e2e-k8s.yml b/.github/workflows/e2e-k8s.yml index 37fc9c1aff2f..a2f46195fc65 100644 --- a/.github/workflows/e2e-k8s.yml +++ b/.github/workflows/e2e-k8s.yml @@ -236,13 +236,13 @@ jobs: filters: '.github/filters.yml' list-files: json - - name: Install k8s - if: steps.filter.outputs.changed == 'true' - run: | - curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.29.6+k3s2 K3S_KUBECONFIG_MODE=777 sh - - cat /etc/rancher/k3s/k3s.yaml - mkdir -p ~/.kube - cp /etc/rancher/k3s/k3s.yaml ~/.kube/config +# - name: Install k8s +# if: steps.filter.outputs.changed == 'true' +# run: | +# curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.29.6+k3s2 K3S_KUBECONFIG_MODE=777 sh - +# cat /etc/rancher/k3s/k3s.yaml +# mkdir -p ~/.kube +# cp /etc/rancher/k3s/k3s.yaml ~/.kube/config - name: Set up JDK 17 for Building ShenYu uses: actions/setup-java@v4 @@ -281,11 +281,11 @@ jobs: docker load --input /tmp/shenyu/apache-shenyu-bootstrap.tar docker image ls -a - - name: Build k8s Cluster - if: steps.filter.outputs.changed == 'true' - run: | - sudo k3s ctr images import /tmp/shenyu/apache-shenyu-admin.tar - sudo k3s ctr images import /tmp/shenyu/apache-shenyu-bootstrap.tar +# - name: Build k8s Cluster +# if: steps.filter.outputs.changed == 'true' +# run: | +# sudo k3s ctr images import /tmp/shenyu/apache-shenyu-admin.tar +# sudo k3s ctr images import /tmp/shenyu/apache-shenyu-bootstrap.tar # - name: Setup Debug Session # uses: mxschmitt/action-tmate@v3 @@ -298,11 +298,11 @@ jobs: run: | bash ./shenyu-e2e/shenyu-e2e-case/${{ matrix.case }}/k8s/script/${{ matrix.script }}.sh - - name: Cluster Test after Healthcheck - if: steps.filter.outputs.changed == 'true' - run: | - kubectl get all - kubectl get events --all-namespaces +# - name: Cluster Test after Healthcheck +# if: steps.filter.outputs.changed == 'true' +# run: | +# kubectl get all +# kubectl get events --all-namespaces requirement: name: e2e