-
Notifications
You must be signed in to change notification settings - Fork 608
feat: Implement ZoneAware loadbalancing - Track Envoy pods via xDS (splitup #6482) #6597
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
Conversation
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6597 +/- ##
==========================================
+ Coverage 71.03% 71.10% +0.07%
==========================================
Files 225 225
Lines 39155 39264 +109
==========================================
+ Hits 27813 27918 +105
- Misses 9732 9734 +2
- Partials 1610 1612 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
a7d21dc to
cad1754
Compare
|
/retest |
|
/retest |
|
/retest |
1 similar comment
|
/retest |
Signed-off-by: Isaac <10012479+jukie@users.noreply.github.com>
|
/retest |
arkodg
left a comment
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.
LGTM thanks @jukie
would like to get this in, hope the remaining comments can be addressed post rc before v1.5.0
| func (t *Translator) ProcessGlobalResources(resources *resource.Resources, xdsIRs resource.XdsIRMap) error { | ||
| func (t *Translator) ProcessGlobalResources(resources *resource.Resources, xdsIRs resource.XdsIRMap, gateways []*GatewayContext) error { | ||
| // Add the ProxyServiceCluster information for each gateway to the IR map | ||
| for _, gateway := range gateways { |
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.
this should ideally iterate over infraIR, right now we iterate through all gateways even for mergeGateways case, can be handled in a follow up
| continue | ||
| } | ||
| match := true | ||
| for k, v := range labels { |
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.
non-blocking, we can reuse somehting like
func isSelectorMatch(labelselector *metav1.LabelSelector, l map[string]string) (bool, error) {
selector, err := metav1.LabelSelectorAsSelector(labelselector)
if err != nil {
return false, fmt.Errorf("invalid label selector is generated: %w", err)
}
return selector.Matches(klabels.Set(l)), nil
}
|
/retest |
|
I can followup with the rest of the changes before the full release |
Signed-off-by: jukie <10012479+Jukie@users.noreply.github.com>
| accessLog: | ||
| json: | ||
| - path: /dev/stdout | ||
| globalResources: |
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.
we can fix this later
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.
I think that's expected here because the testdata input needs updated.
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.
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.
why globalResources not present in GatewayNamesapceMode?
What type of PR is this?
feat: expose explicit configuration for Zone Aware Routing
What this PR does / why we need it:
This is the last PR related to splitting #6482 with the goal of exposing configuration for envoy localityLbConfig via BackendTrafficPolicy. Currently only ZoneAwareLbConfig is implemented but I'm planning on a followup to supported weightedLocalityLbConfig as well.
There's a lot of testdata changes here and I don't see a good way to split this up further without breaking e2e's but I've created draft PRs to try and make it easier to review.
Changes:
Which issue(s) this PR fixes:
Fixes #6025
Release Notes: Yes