diff --git a/internal/gatewayapi/backendtlspolicy.go b/internal/gatewayapi/backendtlspolicy.go index 87682425d6bf..28f77bf825b7 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 {