-
Notifications
You must be signed in to change notification settings - Fork 273
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
Multi-slb related bug fixes #7432
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nilo19 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
activeNodes = bi.getLocalServiceEndpointsNodeNames(service) | ||
} | ||
|
||
if isNICPool(backendPool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix no. 4
@@ -886,7 +889,13 @@ func removeNodeIPAddressesFromBackendPool( | |||
if addresses[i].LoadBalancerBackendAddressPropertiesFormat != nil { | |||
ipAddress := ptr.Deref((*backendPool.LoadBalancerBackendAddresses)[i].IPAddress, "") | |||
if ipAddress == "" { | |||
klog.V(4).Infof("removeNodeIPAddressFromBackendPool: LoadBalancerBackendAddress %s is not IP-based, skipping", ptr.Deref(addresses[i].Name, "")) | |||
if isNodeIP { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix no. 2
@@ -633,7 +634,7 @@ func (bi *backendPoolTypeNodeIP) ReconcileBackendPools(ctx context.Context, clus | |||
if isMigration && bi.EnableMigrateToIPBasedBackendPoolAPI { | |||
var backendPoolNames []string | |||
for _, id := range lbBackendPoolIDsSlice { | |||
name, err := getLBNameFromBackendPoolID(id) | |||
name, err := getBackendPoolNameFromBackendPoolID(id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix no. 5
@@ -446,8 +445,10 @@ func (az *Cloud) getLocalServiceBackendPoolID(serviceName string, lbName string, | |||
|
|||
// localServiceOwnsBackendPool checks if a backend pool is owned by a local service. | |||
func localServiceOwnsBackendPool(serviceName, bpName string) bool { | |||
prefix := strings.Replace(serviceName, "/", "-", -1) | |||
return strings.HasPrefix(strings.ToLower(bpName), strings.ToLower(prefix)) | |||
if strings.HasSuffix(strings.ToLower(bpName), consts.IPVersionIPv6StringLower) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix no. 3
ep = endpointSlice | ||
foundInCache = true | ||
return false | ||
eps = append(eps, endpointSlice) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix no. 1
2b510ac
to
5084147
Compare
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #7113
Fixes #7200
Fixes #6980
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: