Skip to content

Commit 07657cc

Browse files
authored
Run functional tests with LoadBalancer (#2075)
1 parent 051238f commit 07657cc

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/conformance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
8181
with:
8282
version: latest
83-
args: build --snapshot --clean
83+
args: build --single-target --snapshot --clean
8484
env:
8585
TELEMETRY_ENDPOINT: "" # disables sending telemetry
8686
TELEMETRY_ENDPOINT_INSECURE: "false"

.github/workflows/functional.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
6969
with:
7070
version: latest
71-
args: build --snapshot --clean
71+
args: build --single-target --snapshot --clean
7272
env:
7373
TELEMETRY_ENDPOINT: otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317
7474
TELEMETRY_ENDPOINT_INSECURE: "true"
@@ -98,6 +98,14 @@ jobs:
9898
NGINX_CONF_DIR=internal/mode/static/nginx/conf
9999
BUILD_AGENT=gha
100100
101+
- name: Install cloud-provider-kind
102+
run: |
103+
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
104+
tar -xvf cloud-provider-kind_0.2.0_linux_amd64.tar.gz
105+
106+
- name: Run cloud-provider-kind
107+
run: ./cloud-provider-kind & > cloud-provider-kind.log 2>&1
108+
101109
- name: Deploy Kubernetes
102110
id: k8s
103111
run: |
@@ -108,12 +116,12 @@ jobs:
108116
run: |
109117
ngf_prefix=ghcr.io/nginxinc/nginx-gateway-fabric
110118
ngf_tag=${{ steps.ngf-meta.outputs.version }}
111-
make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GINKGO_LABEL=telemetry
119+
make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GINKGO_LABEL=telemetry GW_SERVICE_TYPE=LoadBalancer
112120
working-directory: ./tests
113121

114122
- name: Run functional tests
115123
run: |
116124
ngf_prefix=ghcr.io/nginxinc/nginx-gateway-fabric
117125
ngf_tag=${{ steps.ngf-meta.outputs.version }}
118-
make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag}
126+
make test${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} GW_SERVICE_TYPE=LoadBalancer
119127
working-directory: ./tests

0 commit comments

Comments
 (0)