From 25c678ec162309ca1c67d974e9065ee0aedef7d5 Mon Sep 17 00:00:00 2001 From: ayush Date: Mon, 23 Dec 2024 05:38:05 +0000 Subject: [PATCH] configure httpRedirect on istio gateway in helm --- .../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