Skip to content

Commit 1f7f09a

Browse files
committed
Merge branch 'main' of github.com:nginx/nginx-gateway-fabric into feat/hostPort
2 parents b956397 + 6022fce commit 1f7f09a

File tree

373 files changed

+9743
-2041
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+9743
-2041
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
133133

134134
- name: Build Docker Image
135-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
135+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
136136
with:
137137
file: build/Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || '' }}
138138
context: "."
@@ -149,8 +149,8 @@ jobs:
149149
sbom: true
150150
provenance: mode=max
151151
build-args: |
152-
NJS_DIR=internal/mode/static/nginx/modules/src
153-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
152+
NJS_DIR=internal/controller/nginx/modules/src
153+
NGINX_CONF_DIR=internal/controller/nginx/conf
154154
BUILD_AGENT=gha
155155
secrets: |
156156
${{ contains(inputs.image, 'plus') && format('"nginx-repo.crt={0}"', secrets.NGINX_CRT) || '' }}
@@ -171,7 +171,7 @@ jobs:
171171
fail-build: false
172172

173173
- name: Upload scan result to GitHub Security tab
174-
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
174+
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
175175
continue-on-error: true
176176
with:
177177
sarif_file: ${{ steps.scan.outputs.sarif }}

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Output Variables
6060
id: vars
6161
run: |
62-
K8S_KIND_VERSION=v1.33.0 # renovate: datasource=docker depName=kindest/node
62+
K8S_KIND_VERSION=v1.33.1 # renovate: datasource=docker depName=kindest/node
6363
echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT
6464
echo "min_k8s_version=v1.25.16" >> $GITHUB_OUTPUT
6565
echo "k8s_latest=${K8S_KIND_VERSION}" >> $GITHUB_OUTPUT
@@ -94,7 +94,7 @@ jobs:
9494
run: make unit-test
9595

9696
- name: Upload coverage reports to Codecov
97-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
97+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
9898
with:
9999
token: ${{ secrets.CODECOV_TOKEN }}
100100

@@ -119,10 +119,10 @@ jobs:
119119
node-version-file: .nvmrc
120120

121121
- name: Run tests
122-
run: npm --prefix ${{ github.workspace }}/internal/mode/static/nginx/modules install-ci-test
122+
run: npm --prefix ${{ github.workspace }}/internal/controller/nginx/modules install-ci-test
123123

124124
- name: Upload coverage reports to Codecov
125-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
125+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
126126
with:
127127
token: ${{ secrets.CODECOV_TOKEN }}
128128

@@ -161,7 +161,7 @@ jobs:
161161
if: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
162162

163163
- name: Download Syft
164-
uses: anchore/sbom-action/download-syft@9f7302141466aa6482940f15371237e9d9f4c34a # v0.19.0
164+
uses: anchore/sbom-action/download-syft@e11c554f704a0b820cbf8c51673f6945e0731532 # v0.20.0
165165
if: github.ref_type == 'tag'
166166

167167
- name: Install Cosign

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ jobs:
2626
actions: read # for github/codeql-action/init to get workflow details
2727
contents: read # for actions/checkout to fetch code
2828
security-events: write # for github/codeql-action/autobuild to send a status report
29-
uses: nginxinc/compliance-rules/.github/workflows/[email protected]
29+
uses: nginxinc/compliance-rules/.github/workflows/codeql.yml@c903bfe6c668eaba362cde6a7882278bc1564401 # v0.1
3030
with:
3131
requested_languages: go,javascript-typescript

.github/workflows/conformance.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
TELEMETRY_ENDPOINT_INSECURE: "false"
8787

8888
- name: Build NGF Docker Image
89-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
89+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
9090
with:
9191
file: build/Dockerfile
9292
tags: ${{ steps.ngf-meta.outputs.tags }}
@@ -97,7 +97,7 @@ jobs:
9797
pull: true
9898

9999
- name: Build NGINX Docker Image
100-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
100+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
101101
with:
102102
file: build/Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || ''}}
103103
tags: ${{ steps.nginx-meta.outputs.tags }}
@@ -106,8 +106,8 @@ jobs:
106106
cache-from: type=gha,scope=${{ inputs.image }}
107107
pull: true
108108
build-args: |
109-
NJS_DIR=internal/mode/static/nginx/modules/src
110-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
109+
NJS_DIR=internal/controller/nginx/modules/src
110+
NGINX_CONF_DIR=internal/controller/nginx/conf
111111
BUILD_AGENT=gha
112112
113113
- name: Update Go Modules
@@ -116,7 +116,7 @@ jobs:
116116
working-directory: ./tests
117117

118118
- name: Build Test Docker Image
119-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
119+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
120120
with:
121121
file: tests/conformance/Dockerfile
122122
tags: conformance-test-runner:${{ github.sha }}

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2323

2424
- name: Scan
25-
uses: fossas/fossa-action@c0a7d013f84c8ee5e910593186598625513cc1e4 # v1.6.0
25+
uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
2626
with:
2727
api-key: ${{ secrets.FOSSA_TOKEN }}

.github/workflows/functional.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
TELEMETRY_ENDPOINT_INSECURE: "true"
8181

8282
- name: Build NGF Docker Image
83-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
83+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
8484
with:
8585
file: build/Dockerfile
8686
tags: ${{ steps.ngf-meta.outputs.tags }}
@@ -91,7 +91,7 @@ jobs:
9191
target: goreleaser
9292

9393
- name: Build NGINX Docker Image
94-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
94+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
9595
with:
9696
file: build/Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || ''}}
9797
tags: ${{ steps.nginx-meta.outputs.tags }}
@@ -100,8 +100,8 @@ jobs:
100100
cache-from: type=gha,scope=${{ inputs.image }}
101101
pull: true
102102
build-args: |
103-
NJS_DIR=internal/mode/static/nginx/modules/src
104-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
103+
NJS_DIR=internal/controller/nginx/modules/src
104+
NGINX_CONF_DIR=internal/controller/nginx/conf
105105
BUILD_AGENT=gha
106106
107107
- name: Setup license file for plus

.github/workflows/helm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
type=ref,event=branch,suffix=-rc,enable=${{ startsWith(github.ref, 'refs/heads/release') }}
6161
6262
- name: Build NGF Docker Image
63-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
63+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
6464
with:
6565
file: build/Dockerfile
6666
tags: ${{ steps.ngf-meta.outputs.tags }}
@@ -71,7 +71,7 @@ jobs:
7171
pull: true
7272

7373
- name: Build NGINX Docker Image
74-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # v6.16.0
74+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
7575
with:
7676
file: build/Dockerfile${{ inputs.image == 'nginx' && '.nginx' || '' }}${{ inputs.image == 'plus' && '.nginxplus' || ''}}
7777
tags: ${{ steps.nginx-meta.outputs.tags }}
@@ -80,8 +80,8 @@ jobs:
8080
cache-from: type=gha,scope=${{ inputs.image }}
8181
pull: true
8282
build-args: |
83-
NJS_DIR=internal/mode/static/nginx/modules/src
84-
NGINX_CONF_DIR=internal/mode/static/nginx/conf
83+
NJS_DIR=internal/controller/nginx/modules/src
84+
NGINX_CONF_DIR=internal/controller/nginx/conf
8585
BUILD_AGENT=gha
8686
8787
- name: Install cloud-provider-kind

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ jobs:
5858
id: prettier-run
5959
uses: rutajdash/prettier-cli-action@d42c4325a3b344f3bd4be482bc34de521998d557 # v1.0.2
6060
with:
61-
config_path: ${{ github.workspace }}/internal/mode/static/nginx/modules/.prettierrc
62-
file_pattern: ${{ github.workspace }}/internal/mode/static/nginx/modules/**/*.js
61+
config_path: ${{ github.workspace }}/internal/controller/nginx/modules/.prettierrc
62+
file_pattern: ${{ github.workspace }}/internal/controller/nginx/modules/**/*.js
6363
prettier_version: 3.3.3 # renovate: datasource=npm depName=prettier
6464

6565
- name: Prettier Output
@@ -90,7 +90,7 @@ jobs:
9090
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9191

9292
- name: Lint Markdown
93-
uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19.1.0
93+
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # v20.0.0
9494
with:
9595
config: .markdownlint-cli2.yaml
9696
globs: "**/*.md"

.github/workflows/mend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ permissions:
3232
jobs:
3333
mend:
3434
if: ${{ github.event.repository.fork == false }}
35-
uses: nginxinc/compliance-rules/.github/workflows/[email protected]
35+
uses: nginxinc/compliance-rules/.github/workflows/mend.yml@c903bfe6c668eaba362cde6a7882278bc1564401 # v0.1
3636
secrets: inherit
3737
with:
3838
product_name: nginx-gateway-fabric_${{ github.ref_name }}

.github/workflows/nfr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ jobs:
144144
working-directory: ./tests
145145
run: make create-and-setup-vm
146146

147+
- name: Create and setup Router
148+
working-directory: ./tests
149+
run: make create-gke-router || true
150+
147151
- name: Run Tests
148152
working-directory: ./tests
149153
run: |
@@ -164,6 +168,7 @@ jobs:
164168
if: always()
165169
run: |
166170
bash scripts/cleanup-vm.sh true
171+
bash scripts/cleanup-router.sh true
167172
make delete-gke-cluster
168173
rm -rf scripts/vars.env
169174

0 commit comments

Comments
 (0)