From 07657cc571e8e03ba9090df3b853d4538b511343 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Mon, 10 Jun 2024 08:24:52 -0700 Subject: [PATCH] Run functional tests with LoadBalancer (#2075) --- .github/workflows/conformance.yml | 2 +- .github/workflows/functional.yml | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index b8398e7f7..dfa1e1b55 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -80,7 +80,7 @@ jobs: uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: version: latest - args: build --snapshot --clean + args: build --single-target --snapshot --clean env: TELEMETRY_ENDPOINT: "" # disables sending telemetry TELEMETRY_ENDPOINT_INSECURE: "false" diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index d24a1fc0e..6d660f991 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -68,7 +68,7 @@ jobs: uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: version: latest - args: build --snapshot --clean + args: build --single-target --snapshot --clean env: TELEMETRY_ENDPOINT: otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317 TELEMETRY_ENDPOINT_INSECURE: "true" @@ -98,6 +98,14 @@ jobs: NGINX_CONF_DIR=internal/mode/static/nginx/conf BUILD_AGENT=gha + - name: Install cloud-provider-kind + run: | + curl -fsSL -O https://github.com/kubernetes-sigs/cloud-provider-kind/releases/download/v0.2.0/cloud-provider-kind_0.2.0_linux_amd64.tar.gz + tar -xvf cloud-provider-kind_0.2.0_linux_amd64.tar.gz + + - name: Run cloud-provider-kind + run: ./cloud-provider-kind & > cloud-provider-kind.log 2>&1 + - name: Deploy Kubernetes id: k8s run: | @@ -108,12 +116,12 @@ jobs: run: | ngf_prefix=ghcr.io/nginxinc/nginx-gateway-fabric ngf_tag=${{ steps.ngf-meta.outputs.version }} - make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GINKGO_LABEL=telemetry + make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GINKGO_LABEL=telemetry GW_SERVICE_TYPE=LoadBalancer working-directory: ./tests - name: Run functional tests run: | ngf_prefix=ghcr.io/nginxinc/nginx-gateway-fabric ngf_tag=${{ steps.ngf-meta.outputs.version }} - make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} + make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GW_SERVICE_TYPE=LoadBalancer working-directory: ./tests