From d5fde3e2f6176e6f754c0a880ea559116a48e6aa Mon Sep 17 00:00:00 2001 From: Guy Daich Date: Fri, 12 Jul 2024 14:51:16 -0500 Subject: [PATCH] fix: backendtls minversion (#3835) fix backendtls Signed-off-by: Guy Daich --- internal/gatewayapi/backendtlspolicy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/gatewayapi/backendtlspolicy.go b/internal/gatewayapi/backendtlspolicy.go index 87682425d6b..28f77bf825b 100644 --- a/internal/gatewayapi/backendtlspolicy.go +++ b/internal/gatewayapi/backendtlspolicy.go @@ -69,7 +69,7 @@ func (t *Translator) processBackendTLSPolicy( if envoyProxy.Spec.BackendTLS.MinVersion != nil { tlsBundle.MinVersion = ptr.To(ir.TLSVersion(*envoyProxy.Spec.BackendTLS.MinVersion)) } - if envoyProxy.Spec.BackendTLS.MinVersion != nil { + if envoyProxy.Spec.BackendTLS.MaxVersion != nil { tlsBundle.MaxVersion = ptr.To(ir.TLSVersion(*envoyProxy.Spec.BackendTLS.MaxVersion)) } if len(envoyProxy.Spec.BackendTLS.ALPNProtocols) > 0 {