Skip to content

Commit e2e2e62

Browse files
authored
Merge branch 'main' into tests/nginx-config
2 parents 2785b47 + 0ade9ed commit e2e2e62

File tree

206 files changed

+1396
-6345
lines changed

Some content is hidden

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

206 files changed

+1396
-6345
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
fail-build: false
171171

172172
- name: Upload scan result to GitHub Security tab
173-
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
173+
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
174174
continue-on-error: true
175175
with:
176176
sarif_file: ${{ steps.scan.outputs.sarif }}

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
114114

115115
- name: Setup Node.js Environment
116-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
116+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
117117
with:
118118
node-version-file: .nvmrc
119119

@@ -170,7 +170,7 @@ jobs:
170170
- name: Build binary
171171
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
172172
with:
173-
version: v2.2.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
173+
version: v2.3.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
174174
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
175175
env:
176176
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
# Initializes the CodeQL tools for scanning.
5454
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
55+
uses: github/codeql-action/init@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
5656
with:
5757
languages: ${{ matrix.language }}
5858
build-mode: ${{ matrix.build-mode }}
@@ -64,6 +64,6 @@ jobs:
6464
# queries: security-extended,security-and-quality
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
67+
uses: github/codeql-action/analyze@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
6868
with:
6969
category: "/language:${{matrix.language}}"

.github/workflows/conformance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Build binary
8383
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
8484
with:
85-
version: v2.2.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
85+
version: v2.3.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
8686
args: build --single-target --snapshot --clean
8787
env:
8888
TELEMETRY_ENDPOINT: "" # disables sending telemetry

.github/workflows/docs-build-push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
call-docs-build-push:
4242
needs: [vars]
4343
if: ${{ github.event.repository.fork == false && needs.vars.outputs.azure_creds == 'true' }}
44-
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@d20def4d420028a71f99863011c6de7325c4013e # v1.0.4
44+
uses: nginxinc/docs-actions/.github/workflows/docs-build-push.yml@f88844356d32c94be057b60033b3a933bebabf77 # v1.0.5
4545
permissions:
4646
pull-requests: write # needed to write preview url comment to PR
4747
contents: read

.github/workflows/f5-cla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: Run F5 Contributor License Agreement (CLA) assistant
3030
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have hereby read the F5 CLA and agree to its terms') || github.event_name == 'pull_request_target'
31-
uses: contributor-assistant/github-action@f41946747f85d28e9a738f4f38dbcc74b69c7e0e # v2.5.1
31+
uses: contributor-assistant/github-action@b1522fa982419e79591a92e1267de463a281cdb7 # v2.6.0
3232
with:
3333
# Any pull request targeting the following branch will trigger a CLA check.
3434
branch: "main"

.github/workflows/functional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Build binary
7070
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
7171
with:
72-
version: v2.2.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
72+
version: v2.3.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
7373
args: build --single-target --snapshot --clean
7474
env:
7575
TELEMETRY_ENDPOINT: otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317

.github/workflows/lint.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
4141
with:
4242
working-directory: ${{ matrix.directory }}
43-
version: v1.60.3 # renovate: datasource=github-tags depName=golangci/golangci-lint
43+
version: v1.61.0 # renovate: datasource=github-tags depName=golangci/golangci-lint
4444

4545
njs-lint:
4646
name: NJS Lint
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
5151

5252
- name: Setup Node.js Environment
53-
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
53+
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
5454
with:
5555
node-version-file: .nvmrc
5656

@@ -78,7 +78,7 @@ jobs:
7878
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
7979

8080
- name: Lint Actions
81-
uses: reviewdog/action-actionlint@4f8f9963ca57a41e5fd5b538dd79dbfbd3e0b38a # v1.54.0
81+
uses: reviewdog/action-actionlint@05c9d7bef25a46caf572df3497afa7082fc111df # v1.55.0
8282
with:
8383
actionlint_flags: -shellcheck ""
8484

@@ -90,7 +90,7 @@ jobs:
9090
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
9191

9292
- name: Lint Markdown
93-
uses: DavidAnson/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8 # v16.0.0
93+
uses: DavidAnson/markdownlint-cli2-action@db43aef879112c3119a410d69f66701e0d530809 # v17.0.0
9494
with:
9595
config: .markdownlint-cli2.yaml
9696
globs: "**/*.md"
@@ -127,4 +127,4 @@ jobs:
127127
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
128128

129129
- name: Lint YAML
130-
uses: reviewdog/action-yamllint@4e4ba96d03a0e12a0e71c29e5fef1db309d09201 # v1.18.0
130+
uses: reviewdog/action-yamllint@e09f07780388032a624e9eb44a23fd1bbb4052cc # v1.19.0

.github/workflows/nfr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
merge-multiple: true
161161

162162
- name: Open a PR with the results
163-
uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7.0.1
163+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
164164
with:
165165
token: ${{ secrets.NGINX_PAT }}
166166
commit-message: NFR Test Results for NGF version ${{ needs.vars.outputs.version }}

.github/workflows/release-pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,31 @@ jobs:
4747
echo "current_version=$(yq '.version' <charts/nginx-gateway-fabric/Chart.yaml)" >> $GITHUB_OUTPUT
4848
4949
- name: Find and Replace
50-
uses: jacobtomlinson/gha-find-replace@099c88fbf2a7da26b083521a8bfa13e4f0886b97 # v3.0.3
50+
uses: jacobtomlinson/gha-find-replace@1dcd8b008d15ef0862ae785c76d1419cca930e15 # v3.0.4
5151
with:
5252
find: ${{ steps.vars.outputs.current_version }}
5353
replace: ${{ inputs.version }}
5454
include: "site/content/**/*.md"
5555
regex: false
5656

5757
- name: Find and Replace
58-
uses: jacobtomlinson/gha-find-replace@099c88fbf2a7da26b083521a8bfa13e4f0886b97 # v3.0.3
58+
uses: jacobtomlinson/gha-find-replace@1dcd8b008d15ef0862ae785c76d1419cca930e15 # v3.0.4
5959
with:
6060
find: "edge"
6161
replace: ${{ inputs.version }}
6262
include: "charts/nginx-gateway-fabric/*.yaml"
6363
regex: false
6464

6565
- name: Find and Replace
66-
uses: jacobtomlinson/gha-find-replace@099c88fbf2a7da26b083521a8bfa13e4f0886b97 # v3.0.3
66+
uses: jacobtomlinson/gha-find-replace@1dcd8b008d15ef0862ae785c76d1419cca930e15 # v3.0.4
6767
with:
6868
find: ${{ steps.vars.outputs.current_version }}
6969
replace: ${{ inputs.version }}
7070
include: "charts/nginx-gateway-fabric/*.yaml"
7171
regex: false
7272

7373
- name: Find and Replace
74-
uses: jacobtomlinson/gha-find-replace@099c88fbf2a7da26b083521a8bfa13e4f0886b97 # v3.0.3
74+
uses: jacobtomlinson/gha-find-replace@1dcd8b008d15ef0862ae785c76d1419cca930e15 # v3.0.4
7575
with:
7676
find: "Always"
7777
replace: "IfNotPresent"
@@ -89,7 +89,7 @@ jobs:
8989
make generate-all
9090
9191
- name: Create Pull Request
92-
uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7.0.1
92+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
9393
with:
9494
token: ${{ secrets.NGINX_PAT }}
9595
commit-message: Release ${{ inputs.version }}

.github/workflows/scorecards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060

6161
# Upload the results to GitHub's code scanning dashboard.
6262
- name: "Upload to code-scanning"
63-
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
63+
uses: github/codeql-action/upload-sarif@294a9d92911152fe08befb9ec03e240add280cb3 # v3.26.8
6464
with:
6565
sarif_file: results.sarif

.golangci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,36 @@ linters-settings:
99
ignore-generated-header: true
1010
rules:
1111
- name: blank-imports
12+
- name: constant-logical-expr
1213
- name: context-as-argument
1314
- name: context-keys-type
15+
- name: defer
1416
- name: dot-imports
1517
arguments:
1618
- allowedPackages:
1719
- github.com/onsi/gomega
1820
- github.com/onsi/ginkgo/v2
21+
- name: duplicated-imports
1922
- name: empty-block
2023
- name: error-naming
2124
- name: error-return
2225
- name: error-strings
2326
- name: errorf
2427
- name: exported
28+
- name: import-shadowing
2529
- name: increment-decrement
2630
- name: indent-error-flow
2731
- name: package-comments
2832
- name: range
33+
- name: range-val-address
34+
- name: range-val-in-closure
2935
- name: receiver-naming
3036
- name: redefines-builtin-id
37+
- name: string-of-int
3138
- name: superfluous-else
3239
- name: time-naming
3340
- name: unexported-return
41+
- name: unnecessary-stmt
3442
- name: unreachable-code
3543
- name: unused-parameter
3644
- name: var-declaration
@@ -53,14 +61,19 @@ linters:
5361
enable:
5462
- asasalint
5563
- asciicheck
64+
- bidichk
5665
- copyloopvar
5766
- dupword
67+
- durationcheck
5868
- errcheck
69+
- errchkjson
5970
- errname
6071
- errorlint
6172
- fatcontext
6273
- ginkgolinter
6374
- gocheckcompilerdirectives
75+
- gochecksumtype
76+
- gocritic
6477
- gocyclo
6578
- godot
6679
- gofmt
@@ -75,8 +88,11 @@ linters:
7588
- lll
7689
- loggercheck
7790
- makezero
91+
- mirror
7892
- misspell
93+
- musttag
7994
- nilerr
95+
- nilnil
8096
- noctx
8197
- nolintlint
8298
- predeclared
@@ -86,6 +102,7 @@ linters:
86102
- spancheck
87103
- staticcheck
88104
- stylecheck
105+
- tagalign
89106
- tenv
90107
- thelper
91108
- tparallel

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727
exclude: (^examples/|^docs/|.*_test.go$)
2828

2929
- repo: https://github.com/gitleaks/gitleaks
30-
rev: v8.18.4
30+
rev: v8.19.2
3131
hooks:
3232
- id: gitleaks
3333

@@ -39,7 +39,7 @@ repos:
3939
- javascript
4040

4141
- repo: https://github.com/golangci/golangci-lint
42-
rev: v1.60.3
42+
rev: v1.61.0
4343
hooks:
4444
- id: golangci-lint-full
4545
name: golangci-lint-root

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ GO_LINKER_FLAGS = $(GO_LINKER_FLAGS_OPTIMIZATIONS) $(GO_LINKER_FlAGS_VARS)
2424

2525
# tools versions
2626
# renovate: datasource=github-tags depName=golangci/golangci-lint
27-
GOLANGCI_LINT_VERSION = v1.60.3
27+
GOLANGCI_LINT_VERSION = v1.61.0
2828
# renovate: datasource=docker depName=kindest/node
2929
KIND_K8S_VERSION = v1.31.0
3030
# renovate: datasource=github-tags depName=norwoodj/helm-docs
3131
HELM_DOCS_VERSION = v1.14.2
3232
# renovate: datasource=github-tags depName=ahmetb/gen-crd-api-reference-docs
3333
GEN_CRD_API_REFERENCE_DOCS_VERSION = v0.3.0
3434
# renovate: datasource=go depName=sigs.k8s.io/controller-tools
35-
CONTROLLER_TOOLS_VERSION = v0.16.2
35+
CONTROLLER_TOOLS_VERSION = v0.16.3
3636
# renovate: datasource=docker depName=node
3737
NODE_VERSION = 20
3838
# renovate: datasource=docker depName=quay.io/helmpack/chart-testing

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/nginxinc/nginx-gateway-fabric/badge)](https://api.securityscorecards.dev/projects/github.com/nginxinc/nginx-gateway-fabric)
1+
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/nginxinc/nginx-gateway-fabric/badge)](https://scorecard.dev/viewer/?uri=github.com/nginxinc/nginx-gateway-fabric)
22
[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B5618%2Fgithub.com%2Fnginxinc%2Fnginx-gateway-fabric.svg?type=shield)](https://app.fossa.com/projects/custom%2B5618%2Fgithub.com%2Fnginxinc%2Fnginx-gateway-fabric?ref=badge_shield)
33
[![Continuous Integration](https://github.com/nginxinc/nginx-gateway-fabric/actions/workflows/ci.yml/badge.svg)](https://github.com/nginxinc/nginx-gateway-fabric/actions/workflows/ci.yml)
44
[![Go Report Card](https://goreportcard.com/badge/github.com/nginxinc/nginx-gateway-fabric)](https://goreportcard.com/report/github.com/nginxinc/nginx-gateway-fabric)

apis/v1alpha1/shared_types.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package v1alpha1
22

33
// Duration is a string value representing a duration in time.
4-
// Duration can be specified in milliseconds (ms) or seconds (s) A value without a suffix is seconds.
5-
// Examples: 120s, 50ms.
4+
// Duration can be specified in milliseconds (ms), seconds (s), minutes (m), hours (h).
5+
// A value without a suffix is seconds.
6+
// Examples: 120s, 50ms, 5m, 1h.
67
//
7-
// +kubebuilder:validation:Pattern=`^\d{1,4}(ms|s)?$`
8+
// +kubebuilder:validation:Pattern=`^[0-9]{1,4}(ms|s|m|h)?$`
89
type Duration string
910

1011
// SpanAttribute is a key value pair to be added to a tracing span.

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile:1.9
1+
# syntax=docker/dockerfile:1.10
22
FROM golang:1.23 AS builder
33

44
WORKDIR /go/src/github.com/nginxinc/nginx-gateway-fabric

build/Dockerfile.nginx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile:1.9
1+
# syntax=docker/dockerfile:1.10
22
FROM nginx:1.27.1-alpine-otel
33

44
ARG NJS_DIR

build/Dockerfile.nginxplus

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# syntax=docker/dockerfile:1.9
1+
# syntax=docker/dockerfile:1.10
22
FROM scratch AS nginx-files
33

44
# the following links can be replaced with local files if needed, i.e. ADD --chown=101:1001 <local_file> <container_file>

config/crd/bases/gateway.nginx.org_clientsettingspolicies.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.2
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
labels:
88
gateway.networking.k8s.io/policy: inherited
99
name: clientsettingspolicies.gateway.nginx.org
@@ -70,7 +70,7 @@ spec:
7070
If a client does not transmit anything within this time, the request is terminated with the
7171
408 (Request Time-out) error.
7272
Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout.
73-
pattern: ^\d{1,4}(ms|s)?$
73+
pattern: ^[0-9]{1,4}(ms|s|m|h)?$
7474
type: string
7575
type: object
7676
keepAlive:
@@ -91,21 +91,21 @@ spec:
9191
Time defines the maximum time during which requests can be processed through one keep-alive connection.
9292
After this time is reached, the connection is closed following the subsequent request processing.
9393
Default: https://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_time.
94-
pattern: ^\d{1,4}(ms|s)?$
94+
pattern: ^[0-9]{1,4}(ms|s|m|h)?$
9595
type: string
9696
timeout:
9797
description: Timeout defines the keep-alive timeouts for clients.
9898
properties:
9999
header:
100100
description: 'Header sets the timeout in the "Keep-Alive:
101101
timeout=time" response header field.'
102-
pattern: ^\d{1,4}(ms|s)?$
102+
pattern: ^[0-9]{1,4}(ms|s|m|h)?$
103103
type: string
104104
server:
105105
description: |-
106106
Server sets the timeout during which a keep-alive client connection will stay open on the server side.
107107
Setting this value to 0 disables keep-alive client connections.
108-
pattern: ^\d{1,4}(ms|s)?$
108+
pattern: ^[0-9]{1,4}(ms|s|m|h)?$
109109
type: string
110110
type: object
111111
x-kubernetes-validations:

config/crd/bases/gateway.nginx.org_nginxgateways.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.2
6+
controller-gen.kubebuilder.io/version: v0.16.3
77
name: nginxgateways.gateway.nginx.org
88
spec:
99
group: gateway.nginx.org

0 commit comments

Comments
 (0)