Skip to content

Commit 1a40c74

Browse files
renovate[bot]nowjean
authored andcommitted
Update dependency goreleaser/goreleaser to v2.10.2 (nginx#3478)
| datasource | package | from | to | | ----------- | --------------------- | ------ | ------- | | github-tags | goreleaser/goreleaser | v2.9.0 | v2.10.2 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> ADD Nginx Gateway HPA(nginx#3447)
1 parent 9acd2a2 commit 1a40c74

File tree

5 files changed

+82
-3
lines changed

5 files changed

+82
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ jobs:
171171
- name: Build binary
172172
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
173173
with:
174-
version: v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
174+
version: v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
175175
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
176176
env:
177177
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/conformance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
- name: Build binary
8080
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
8181
with:
82-
version: v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
82+
version: v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
8383
args: build --single-target --snapshot --clean
8484
env:
8585
TELEMETRY_ENDPOINT: "" # disables sending telemetry

.github/workflows/functional.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
- name: Build binary
7474
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
7575
with:
76-
version: v2.9.0 # renovate: datasource=github-tags depName=goreleaser/goreleaser
76+
version: v2.10.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
7777
args: build --single-target --snapshot --clean
7878
env:
7979
TELEMETRY_ENDPOINT: otel-collector-opentelemetry-collector.collector.svc.cluster.local:4317
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{{- if and (eq .Values.nginxGateway.kind "deployment") .Values.nginxGateway.autoscaling.enabled -}}
2+
apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.APIVersions.Has "autoscaling/v2") }}
3+
kind: HorizontalPodAutoscaler
4+
metadata:
5+
{{- with .Values.autoscaling.annotations }}
6+
annotations: {{ toYaml . | nindent 4 }}
7+
{{- end }}
8+
labels:
9+
{{- include "nginx-gateway.labels" . | nindent 4 }}
10+
{{- with .Values.nginxGateway.labels }}
11+
{{- toYaml . | nindent 4 }}
12+
{{- end }}
13+
name: {{ include "nginx-gateway.fullname" . }}
14+
namespace: {{ .Release.Namespace }}
15+
spec:
16+
scaleTargetRef:
17+
apiVersion: apps/v1
18+
kind: Deployment
19+
name: {{ include "nginx-gateway.fullname" . }}
20+
minReplicas: {{ .Values.autoscaling.minReplicas }}
21+
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
22+
metrics:
23+
{{- with .Values.autoscaling.targetMemoryUtilizationPercentage }}
24+
- type: Resource
25+
resource:
26+
name: memory
27+
target:
28+
type: Utilization
29+
averageUtilization: {{ . }}
30+
{{- end }}
31+
{{- with .Values.autoscaling.targetCPUUtilizationPercentage }}
32+
- type: Resource
33+
resource:
34+
name: cpu
35+
target:
36+
type: Utilization
37+
averageUtilization: {{ . }}
38+
{{- end }}
39+
{{- with .Values.autoscalingTemplate }}
40+
{{- toYaml . | nindent 2 }}
41+
{{- end }}
42+
{{- with .Values.autoscaling.behavior }}
43+
behavior:
44+
{{- toYaml . | nindent 4 }}
45+
{{- end }}
46+
{{- end }}

charts/nginx-gateway-fabric/values.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,37 @@ nginxGateway:
153153
# -- The topology spread constraints for the NGINX Gateway Fabric control plane pod.
154154
topologySpreadConstraints: []
155155

156+
autoscaling:
157+
enabled: false
158+
annotations: {}
159+
minReplicas: 1
160+
maxReplicas: 11
161+
targetCPUUtilizationPercentage: 50
162+
targetMemoryUtilizationPercentage: 50
163+
behavior: {}
164+
# scaleDown:
165+
# stabilizationWindowSeconds: 300
166+
# policies:
167+
# - type: Pods
168+
# value: 1
169+
# periodSeconds: 180
170+
# scaleUp:
171+
# stabilizationWindowSeconds: 300
172+
# policies:
173+
# - type: Pods
174+
# value: 2
175+
# periodSeconds: 60
176+
autoscalingTemplate: []
177+
# Custom or additional autoscaling metrics
178+
# ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-custom-metrics
179+
# - type: Pods
180+
# pods:
181+
# metric:
182+
# name: nginx_gateway_fabric_nginx_process_requests_total
183+
# target:
184+
# type: AverageValue
185+
# averageValue: 10000m
186+
156187
metrics:
157188
# -- Enable exposing metrics in the Prometheus format.
158189
enable: true
@@ -218,6 +249,8 @@ nginx:
218249
# plane will copy these secrets into any namespace where NGINX is deployed.
219250
imagePullSecrets: []
220251

252+
resources: {}
253+
221254
# Configuration for NGINX Plus usage reporting.
222255
usage:
223256
# -- The name of the Secret containing the JWT for NGINX Plus usage reporting. Must exist in the same namespace

0 commit comments

Comments
 (0)