Skip to content

Commit 7997f8d

Browse files
authored
Merge branch 'main' into feat/hostPort
2 parents f84d3be + 0ab30e6 commit 7997f8d

File tree

31 files changed

+462
-201
lines changed

31 files changed

+462
-201
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
164164
- name: Scan SBOM
165165
id: scan
166-
uses: anchore/scan-action@be7a22da4f22dde446c4c4c099887ff5b256526c # v6.3.0
166+
uses: anchore/scan-action@16910ac423301c6d30554b83a7f71ac6ff4a51f3 # v6.4.0
167167
with:
168168
sbom: "sbom-${{ inputs.image }}.json"
169169
only-fixed: true

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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@9246b90769f852b3a8921f330c59e0b3f439d6e9 # v0.20.1
164+
uses: anchore/sbom-action/download-syft@cee1b8e05ae5b2593a75e197229729eabaa9f8ec # v0.20.2
165165
if: github.ref_type == 'tag'
166166

167167
- name: Install Cosign

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4141
with:
4242
working-directory: ${{ matrix.directory }}
43-
version: v2.1.6 # renovate: datasource=github-tags depName=golangci/golangci-lint
43+
version: v2.2.1 # renovate: datasource=github-tags depName=golangci/golangci-lint
4444

4545
njs-lint:
4646
name: NJS Lint

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
- javascript
4040

4141
- repo: https://github.com/golangci/golangci-lint
42-
rev: v2.1.6
42+
rev: v2.2.1
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
@@ -23,7 +23,7 @@ GO_LINKER_FLAGS = $(GO_LINKER_FLAGS_OPTIMIZATIONS) $(GO_LINKER_FlAGS_VARS)
2323

2424
# tools versions
2525
# renovate: datasource=github-tags depName=golangci/golangci-lint
26-
GOLANGCI_LINT_VERSION = v2.1.6
26+
GOLANGCI_LINT_VERSION = v2.2.1
2727
# renovate: datasource=docker depName=kindest/node
2828
KIND_K8S_VERSION = v1.33.1
2929
# renovate: datasource=github-tags depName=norwoodj/helm-docs
@@ -126,7 +126,7 @@ generate-crds: ## Generate CRDs and Go types using kubebuilder
126126

127127
.PHONY: install-crds
128128
install-crds: ## Install CRDs
129-
kubectl kustomize $(SELF_DIR)config/crd | kubectl apply -f -
129+
kubectl kustomize $(SELF_DIR)config/crd | kubectl apply --server-side -f -
130130

131131
.PHONY: install-gateway-crds
132132
install-gateway-crds: ## Install Gateway API CRDs

build/Dockerfile.nginx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,10 @@ RUN --mount=type=bind,from=nginx-files,src=nginx_signing.rsa.pub,target=/etc/apk
1616
printf "%s\n" "https://packages.nginx.org/nginx-agent/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
1717
&& apk add --no-cache nginx-agent=${NGINX_AGENT_VERSION#v}
1818

19-
RUN apk add --no-cache libcap bash \
19+
RUN apk add --no-cache bash \
2020
&& mkdir -p /usr/lib/nginx/modules \
21-
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx \
22-
&& setcap -v 'cap_net_bind_service=+ep' /usr/sbin/nginx \
23-
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx-debug \
24-
&& setcap -v 'cap_net_bind_service=+ep' /usr/sbin/nginx-debug \
2521
# Update packages for CVE-2025-32414 and CVE-2025-32415
2622
&& apk --no-cache upgrade libxml2 \
27-
&& apk del libcap \
2823
# forward request and error logs to docker log collector
2924
&& ln -sf /dev/stdout /var/log/nginx/access.log \
3025
&& ln -sf /dev/stderr /var/log/nginx/error.log

build/Dockerfile.nginxplus

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/apk/cert.pem,mode=0644 \
2222
&& printf "%s\n" "https://pkgs.nginx.com/nginx-agent/alpine/v$(egrep -o '^[0-9]+\.[0-9]+' /etc/alpine-release)/main" >> /etc/apk/repositories \
2323
&& apk add --no-cache nginx-plus nginx-plus-module-njs nginx-plus-module-otel nginx-agent=${NGINX_AGENT_VERSION#v}
2424

25-
RUN apk add --no-cache libcap bash \
25+
RUN apk add --no-cache bash \
2626
&& mkdir -p /usr/lib/nginx/modules \
27-
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx \
28-
&& setcap -v 'cap_net_bind_service=+ep' /usr/sbin/nginx \
29-
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx-debug \
30-
&& setcap -v 'cap_net_bind_service=+ep' /usr/sbin/nginx-debug \
31-
&& apk del libcap \
3227
# forward request and error logs to docker log collector
3328
&& ln -sf /dev/stdout /var/log/nginx/access.log \
3429
&& ln -sf /dev/stderr /var/log/nginx/error.log

charts/nginx-gateway-fabric/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Helm does not upgrade the NGINX Gateway Fabric CRDs during a release upgrade. Be
139139
must [pull the chart](#pulling-the-chart) from GitHub and run the following command to upgrade the CRDs:
140140

141141
```shell
142-
kubectl apply -f crds/
142+
kubectl apply --server-side -f crds/
143143
```
144144

145145
The following warning is expected and can be ignored:

charts/nginx-gateway-fabric/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Helm does not upgrade the NGINX Gateway Fabric CRDs during a release upgrade. Be
137137
must [pull the chart](#pulling-the-chart) from GitHub and run the following command to upgrade the CRDs:
138138

139139
```shell
140-
kubectl apply -f crds/
140+
kubectl apply --server-side -f crds/
141141
```
142142

143143
The following warning is expected and can be ignored:

charts/nginx-gateway-fabric/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ spec:
3535
{{- end }}
3636
{{- end }}
3737
spec:
38+
automountServiceAccountToken: true
3839
containers:
3940
- args:
4041
- controller

0 commit comments

Comments
 (0)