Skip to content

Commit b956397

Browse files
committed
Merge branch 'main' of github.com:nginx/nginx-gateway-fabric into feat/hostPort
2 parents 6dcba57 + b6ff28c commit b956397

File tree

311 files changed

+35994
-16774
lines changed

Some content is hidden

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

311 files changed

+35994
-16774
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ A clear and concise description of what you expected to happen.
2424
* Version of Kubernetes
2525
* Kubernetes platform (e.g. Mini-kube or GCP)
2626
* Details on how you expose the NGINX Gateway Fabric Pod (e.g. Service of type LoadBalancer or port-forward)
27-
* Logs of NGINX container: `kubectl -n nginx-gateway logs -l app=nginx-gateway -c nginx`
28-
* NGINX Configuration: `kubectl -n nginx-gateway exec <gateway-pod> -c nginx -- nginx -T`
27+
* Logs of NGINX container: `kubectl -n <nginx-deployment-namespace> logs deployments/<nginx-deployment>`
28+
* NGINX Configuration: `kubectl -n <nginx-deployment-namespace> exec -it deployments/<nginx-deployment> -- nginx -T`
2929

3030
**Additional context**
3131
Add any other context about the problem here. Any log files you want to share.

.github/workflows/build.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,9 @@ jobs:
171171
fail-build: false
172172

173173
- name: Upload scan result to GitHub Security tab
174-
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
174+
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
175175
continue-on-error: true
176176
with:
177177
sarif_file: ${{ steps.scan.outputs.sarif }}
178178
category: build-${{ inputs.image }}
179179
if: always()
180-
181-
- name: Upload Scan Results
182-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
183-
continue-on-error: true
184-
with:
185-
name: scan-results-${{ inputs.image }}
186-
path: |
187-
${{ steps.scan.outputs.sarif }}
188-
*.json
189-
!sbom-plus.json
190-
if: always()

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
token: ${{ github.actor == 'renovate[bot]' && secrets.NGINX_PAT || github.token }}
4242

4343
- name: Setup Golang Environment
44-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
44+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4545
with:
4646
go-version: stable
4747
cache-dependency-path: |
@@ -83,7 +83,7 @@ jobs:
8383
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8484

8585
- name: Setup Golang Environment
86-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
86+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
8787
with:
8888
go-version: stable
8989
cache-dependency-path: |
@@ -141,7 +141,7 @@ jobs:
141141
fetch-depth: 0
142142

143143
- name: Setup Golang Environment
144-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
144+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
145145
with:
146146
go-version: stable
147147
cache-dependency-path: |

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,37 +20,12 @@ permissions:
2020
contents: read
2121

2222
jobs:
23-
analyze:
23+
codeql:
2424
permissions:
2525
packages: read
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-
name: Analyze (${{ matrix.language }})
30-
runs-on: ubuntu-24.04
31-
32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
include:
36-
- language: go
37-
build-mode: autobuild
38-
- language: javascript-typescript
39-
build-mode: none
40-
41-
steps:
42-
- name: Checkout repository
43-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
44-
45-
# Initializes the CodeQL tools for scanning.
46-
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
48-
with:
49-
languages: ${{ matrix.language }}
50-
build-mode: ${{ matrix.build-mode }}
51-
queries: security-and-quality
52-
53-
- name: Perform CodeQL Analysis
54-
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
55-
with:
56-
category: "/language:${{matrix.language}}"
29+
uses: nginxinc/compliance-rules/.github/workflows/[email protected]
30+
with:
31+
requested_languages: go,javascript-typescript

.github/workflows/conformance.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fetch-depth: 0
4141

4242
- name: Setup Golang Environment
43-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
43+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4444
with:
4545
go-version: stable
4646

@@ -76,13 +76,6 @@ jobs:
7676
type=ref,event=pr
7777
type=ref,event=branch,suffix=-rc,enable=${{ startsWith(github.ref, 'refs/heads/release') }}
7878
79-
- name: Generate static deployment
80-
run: |
81-
ngf_prefix=ghcr.io/nginx/nginx-gateway-fabric
82-
ngf_tag=${{ steps.ngf-meta.outputs.version }}
83-
make generate-static-deployment PLUS_ENABLED=${{ inputs.image == 'plus' && 'true' || 'false' }} PREFIX=${ngf_prefix} TAG=${ngf_tag}
84-
working-directory: ./tests
85-
8679
- name: Build binary
8780
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
8881
with:
@@ -151,7 +144,6 @@ jobs:
151144
ngf_tag=${{ steps.ngf-meta.outputs.version }}
152145
if [ ${{ github.event_name }} == "schedule" ]; then export GW_API_VERSION=main; fi
153146
make helm-install-local${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag}
154-
make deploy-updated-provisioner PREFIX=${ngf_prefix} TAG=${ngf_tag}
155147
working-directory: ./tests
156148

157149
- name: Run conformance tests

.github/workflows/dependency-review.yml

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

1717
- name: "Dependency Review"
18-
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0
18+
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
1919
with:
2020
config-file: "nginx/k8s-common/dependency-review-config.yml@main"

.github/workflows/functional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fetch-depth: 0
3535

3636
- name: Setup Golang Environment
37-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
37+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3838
with:
3939
go-version: stable
4040

.github/workflows/helm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,4 @@ jobs:
176176
--set=nginx.plus=${{ inputs.image == 'plus' }} \
177177
--set=nginx.image.tag=nightly \
178178
--set=nginxGateway.productTelemetry.enable=false \
179-
${{ inputs.image == 'plus' && '--set=serviceAccount.imagePullSecret=nginx-plus-registry-secret --set=nginx.image.repository=private-registry.nginx.com/nginx-gateway-fabric/nginx-plus' || '' }}"
179+
${{ inputs.image == 'plus' && '--set=nginx.imagePullSecret=nginx-plus-registry-secret --set=nginx.image.repository=private-registry.nginx.com/nginx-gateway-fabric/nginx-plus' || '' }}"

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3333

3434
- name: Setup Golang Environment
35-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
35+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3636
with:
3737
go-version: stable
3838

3939
- name: Lint Go
40-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
40+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4141
with:
4242
working-directory: ${{ matrix.directory }}
43-
version: v2.1.5 # renovate: datasource=github-tags depName=golangci/golangci-lint
43+
version: v2.1.6 # renovate: datasource=github-tags depName=golangci/golangci-lint
4444

4545
njs-lint:
4646
name: NJS Lint

.github/workflows/mend.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,23 @@ on:
44
push:
55
branches:
66
- main
7+
- release-*
78
tags:
89
- "v[0-9]+.[0-9]+.[0-9]+*"
910
paths-ignore:
1011
- design/**
1112
- deploy**
1213
- docs/**
1314
- examples/**
15+
pull_request:
16+
branches:
17+
- main
18+
- release-*
19+
paths-ignore:
20+
- design/**
21+
- deploy**
22+
- docs/**
23+
- examples/**
1424

1525
concurrency:
1626
group: ${{ github.ref_name }}-mend
@@ -20,22 +30,10 @@ permissions:
2030
contents: read
2131

2232
jobs:
23-
scan:
24-
name: Mend
25-
runs-on: ubuntu-24.04
33+
mend:
2634
if: ${{ github.event.repository.fork == false }}
27-
steps:
28-
- name: Checkout Repository
29-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30-
31-
- name: Download agent
32-
run: curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
33-
34-
- name: Verify JAR
35-
run: jarsigner -verify wss-unified-agent.jar
36-
37-
- name: Scan and upload
38-
env:
39-
PRODUCT_NAME: nginx-gateway-fabric_${{ github.ref_name }}
40-
PROJECT_NAME: nginx-gateway-fabric
41-
run: java -jar wss-unified-agent.jar -noConfig true -wss.url ${{ secrets.WSS_URL }} -apiKey ${{ secrets.WSS_NGINX_TOKEN }} -product $PRODUCT_NAME -project $PROJECT_NAME -d .
35+
uses: nginxinc/compliance-rules/.github/workflows/[email protected]
36+
secrets: inherit
37+
with:
38+
product_name: nginx-gateway-fabric_${{ github.ref_name }}
39+
project_name: nginx-gateway-fabric

0 commit comments

Comments
 (0)