-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description <!-- * Prefix: the title with the component name being changed. Add a short and self describing sentence to ease the review * Please add a few lines providing context and describing the change * Please self comment changes whenever applicable to help with the review process * Please keep the checklist as part of the PR. Tick what applies to this change. --> Update primarily loadbalancer.go to support UDP - Removed check preventing creation of UDP LoadBalancer - Modified updateLoadBalancer to make port/protocol combination is used as key instead of only port - Check Port/Protocol combination during NLB deletion - Added healthcheck annotation to make possible to provide a custom healthcheck port - Added example to readme Fixes #79 ## Checklist (For exoscale contributors) * [ ] Changelog updated (under *Unreleased* block) * [ ] Testing ## Testing <!-- Describe the tests you did --> Added a test variant for NLB creation with UDP ``` ❯ gmake test go.mk/version.mk:13: warning: overriding recipe for target 'get-version-tag' /Users/denis/Documents/GitHub/exoscale-cloud-controller-manager/go.mk/version.mk:13: warning: ignoring old recipe for target 'get-version-tag' go.mk/version.mk:13: warning: overriding recipe for target 'get-version-tag' /Users/denis/Documents/GitHub/exoscale-cloud-controller-manager/go.mk/version.mk:13: warning: ignoring old recipe for target 'get-version-tag' '/opt/homebrew/bin/go' test \ -race \ -timeout 15s \ \ github.com/exoscale/exoscale-cloud-controller-manager/exoscale ok github.com/exoscale/exoscale-cloud-controller-manager/exoscale 5.832s ``` Manual tests done: - Added and checked UDP services - Modified service ports - Modifying 8080/tcp, 8080/udp to 8081/tcp, 8080/udp works out of the box - Modifying back to the same port/different protocol combination needs `kubectl apply --server-side` because of a long lasting kubectl bug:kubernetes/kubernetes#105610 - Talked successfully to UDP service via netcat, both with externalTrafficPolicy Cluster (and provided healthcheckport in annotation) and with Local (without the sidecar container and annotation) - Deletion of NLB - Classical NLB setup with nginx ingress
- Loading branch information
Showing
12 changed files
with
354 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.