fix(gateway): api flag https redirect (#5960)

* fix: add helm toggle to disable the http to https redirect

* docs: add documentation about new parameter
This commit is contained in:
sass1997
2026-08-11 15:30:38 +02:00
committed by GitHub
parent 6cce3d60bb
commit a206a0779e
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -268,6 +268,7 @@ uer. `ClusterIssuer` or `Issuer`. |
| topologySpreadConstraints.constraints | list | `[]` | Raw `spec.template.spec.topologySpreadConstraints` entries applied to the distributed StatefulSet when enabled. |
| gatewayApi.enabled | bool | `false` | To enable/disable gateway api support. |
| gatewayApi.gatewayClass | string | `traefik` | Gateway class implementation. |
| gatewayApi.httpToHttpsRedirect | bool | `true` | To enable/disable the redirect httproute. |
| gatewayApi.listeners.http.name | string | `web` | Gateway API http listener name. |
| gatewayApi.listeners.http.port| int | `8000` | Gateway API http listener port. |
| gatewayApi.listeners.https.name | string | `websecure` | Gateway API https listener name. |
@@ -37,7 +37,7 @@ spec:
- name: {{ include "rustfs.fullname" $ }}-svc
port: {{ .Values.service.console.port }}
{{- end }}
{{- if .Values.gatewayApi.httpToHttpsRedirect }}
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
@@ -62,4 +62,5 @@ spec:
requestRedirect:
scheme: https
statusCode: 301
{{- end }}
{{- end }}
+1
View File
@@ -370,6 +370,7 @@ gatewayApi:
name: websecure
port: 8443
hostname: example.rustfs.com
httpToHttpsRedirect: true
existingGateway:
name: ""
namespace: ""