From f072aa829fdf387d0f1ba2b2167b88c86128331e Mon Sep 17 00:00:00 2001 From: Lan Liang Date: Wed, 17 Jan 2024 08:36:02 +0000 Subject: [PATCH] Fix github action e2e test. Signed-off-by: Lan Liang --- .github/workflows/e2e.yaml | 35 ++++++----------------------------- examples/kind/README.md | 4 ++++ 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index ab8dfc6f0..f366b56d6 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -36,7 +36,7 @@ jobs: docker build -t gcr.io/k8s-staging-kas-network-proxy/proxy-agent:master -f artifacts/images/agent-build.Dockerfile . docker save gcr.io/k8s-staging-kas-network-proxy/proxy-agent:master > _output/konnectivity-agent.tar docker build -t gcr.io/k8s-staging-kas-network-proxy/proxy-server:master -f artifacts/images/server-build.Dockerfile . - docker save gcr.io/k8s-staging-kas-network-proxy/proxy-server:master > > _output/konnectivity-server.tar + docker save gcr.io/k8s-staging-kas-network-proxy/proxy-server:master > _output/konnectivity-server.tar - uses: actions/upload-artifact@v2 with: @@ -80,7 +80,7 @@ jobs: # kubectl curl -L https://dl.k8s.io/${{ env.K8S_VERSION }}/bin/linux/amd64/kubectl -o ${TMP_DIR}/kubectl # kind - curl -Lo ${TMP_DIR}/kind https://kind.sigs.k8s.io/dl/v0.17.0/kind-linux-amd64 + curl -Lo ${TMP_DIR}/kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64 # Install sudo cp ${TMP_DIR}/ginkgo /usr/local/bin/ginkgo sudo cp ${TMP_DIR}/e2e.test /usr/local/bin/e2e.test @@ -93,35 +93,12 @@ jobs: # output_dir mkdir -p _artifacts # create cluster - cat < _artifacts/kubeconfig.conf diff --git a/examples/kind/README.md b/examples/kind/README.md index b5cac8ef1..e16afe9ad 100644 --- a/examples/kind/README.md +++ b/examples/kind/README.md @@ -4,6 +4,10 @@ Change to the `examples/kind` folder and create a `kind` cluster with the `kind.config` file ```sh +$ sed -i 's/IP_FAMILY/ipv4/g' kind.config + +$ sed -i 's#EGREE_SELECTOR_CONFIGURATION_PATH#./egress_selector_configuration.yaml#g' kind.config + $ kind create cluster --config kind.config Creating cluster "kind" ... DEBUG: docker/images.go:58] Image: kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 present locally