Skip to content

Conversation

@nox-404
Copy link
Contributor

@nox-404 nox-404 commented Mar 12, 2024

No description provided.

func getSSLBridging(service *v1.Service, nodePort int32) (*bool, error) {
tlsEnabled, found := service.Annotations[serviceAnnotationLoadBalancerHTTPBackendTLS]
if !found {
return nil, nil
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering, this return just does nothing ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same pattern as the other, if no annotation set, we return the default (unset)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but agreed that passing an empty string to isPortInRange would render the same result.
I'll keep the check as it's more explicit

@nox-404 nox-404 merged commit a7a896a into scaleway:master Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants