@@ -157,8 +157,8 @@ const (
157157 // (for instance "80,443")
158158 serviceAnnotationLoadBalancerProtocolHTTP = "service.beta.kubernetes.io/scw-loadbalancer-protocol-http"
159159
160- // serviceAnnotationLoadBalancerHTTPBackendTLS is the annotation to enable tls towards the backend when using http forward protocol
161- // The possible values are "false", "true" or "*" for all ports or a comma delimited list of the service port
160+ // serviceAnnotationLoadBalancerHTTPBackendTLS is the annotation to enable tls towards the backend when using http forward protocol.
161+ // Default to "false". The possible values are "false", "true" or "*" for all ports or a comma delimited list of the service port
162162 // (for instance "80,443")
163163 serviceAnnotationLoadBalancerHTTPBackendTLS = "service.beta.kubernetes.io/scw-loadbalancer-http-backend-tls"
164164
@@ -659,10 +659,10 @@ func getForwardProtocol(service *v1.Service, nodePort int32) (scwlb.Protocol, er
659659 return scwlb .ProtocolTCP , nil
660660}
661661
662- func getSSLBridging (service * v1.Service , nodePort int32 ) (* bool , error ) {
662+ func getSSLBridging (service * v1.Service , nodePort int32 ) (bool , error ) {
663663 tlsEnabled , found := service .Annotations [serviceAnnotationLoadBalancerHTTPBackendTLS ]
664664 if ! found {
665- return nil , nil
665+ return false , nil
666666 }
667667
668668 var svcPort int32 = - 1
@@ -673,16 +673,16 @@ func getSSLBridging(service *v1.Service, nodePort int32) (*bool, error) {
673673 }
674674 if svcPort == - 1 {
675675 klog .Errorf ("no valid port found" )
676- return nil , errLoadBalancerInvalidAnnotation
676+ return false , errLoadBalancerInvalidAnnotation
677677 }
678678
679679 isTLSEnabled , err := isPortInRange (tlsEnabled , svcPort )
680680 if err != nil {
681681 klog .Errorf ("unable to check if port %d is in range %s" , svcPort , tlsEnabled )
682- return nil , err
682+ return false , err
683683 }
684684
685- return scw . BoolPtr ( isTLSEnabled ) , nil
685+ return isTLSEnabled , nil
686686}
687687
688688func getSSLBridgingSkipVerify (service * v1.Service , nodePort int32 ) (* bool , error ) {
0 commit comments