Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(lb): add ssl bridging annotations #164

Merged
merged 2 commits into from
Aug 26, 2024
Merged

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
5 checks passed
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