-
Notifications
You must be signed in to change notification settings - Fork 83
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
Handle weighted services #327
Handle weighted services #327
Conversation
Signed-off-by: Ryan Tay <[email protected]>
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #327 +/- ##
==========================================
+ Coverage 71.47% 71.49% +0.02%
==========================================
Files 65 65
Lines 8823 8845 +22
==========================================
+ Hits 6306 6324 +18
- Misses 2187 2191 +4
Partials 330 330 ☔ View full report in Codecov by Sentry. |
//TODO: Verify Local and Remote Endpoints are constructed correctly | ||
identityConfigEnvironment *registry.IdentityConfigEnvironment) ([]*networkingV1Alpha3.WorkloadEntry, error) { | ||
if len(identityConfigEnvironment.Services) == 0 { | ||
return nil, fmt.Errorf("there were no services for the asset in namespace %s on cluster %s", identityConfigEnvironment.Namespace, serverCluster) |
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 is more common, maybe make this info
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.
Noted, will put this in next PR
Handle weighted rollouts
Handle unweighted deployments and rollouts by sorting services and taking the first one