From 8ec74176ca9c908e134903329ada5317afc0a262 Mon Sep 17 00:00:00 2001 From: Ayush Sawant Date: Fri, 3 Jan 2025 02:21:52 +0530 Subject: [PATCH] configure httpRedirect on istio gateway in helm (#1948) --- .../knative-operator/templates/operator.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/config/charts/knative-operator/templates/operator.yaml b/config/charts/knative-operator/templates/operator.yaml index b7f151ba2..3e42f2fce 100644 --- a/config/charts/knative-operator/templates/operator.yaml +++ b/config/charts/knative-operator/templates/operator.yaml @@ -4875,6 +4875,13 @@ spec: type: string type: object tls: + nullable: true + oneOf: + - required: + - mode + - credentialName + - required: + - httpsRedirect properties: mode: description: TLS mode can be SIMPLE, MUTUAL, ISTIO_MUTUAL. @@ -4884,6 +4891,11 @@ spec: description: TLS certificate name. format: string type: string + httpsRedirect: + description: If set to true, the load balancer will send a 301 redirect + to HTTPS for all HTTP requests. Should be used only for HTTP listener, + is mutually exclusive with all other TLS options. + type: boolean type: object type: object type: array @@ -4924,6 +4936,13 @@ spec: type: string type: object tls: + nullable: true + oneOf: + - required: + - mode + - credentialName + - required: + - httpsRedirect properties: mode: description: TLS mode can be SIMPLE, MUTUAL, ISTIO_MUTUAL. @@ -4933,6 +4952,11 @@ spec: description: TLS certificate name. format: string type: string + httpsRedirect: + description: If set to true, the load balancer will send a 301 redirect + to HTTPS for all HTTP requests. Should be used only for HTTP listener, + is mutually exclusive with all other TLS options. + type: boolean type: object type: object type: array