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

Handle weighted services #327

Merged
merged 3 commits into from
Aug 21, 2024

Conversation

rtay1188
Copy link
Collaborator

Handle weighted rollouts
Handle unweighted deployments and rollouts by sorting services and taking the first one

@codecov-commenter
Copy link

codecov-commenter commented Aug 19, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 81.08108% with 7 lines in your changes missing coverage. Please review.

Project coverage is 71.49%. Comparing base (ee2d3d0) to head (22f238c).

Files Patch % Lines
admiral/pkg/registry/config.go 0.00% 6 Missing ⚠️
admiral/pkg/clusters/configwriter.go 96.77% 1 Missing ⚠️

❗ 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.
📢 Have feedback on the report? Share it here.

//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)
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@rtay1188 rtay1188 merged commit 747a58e into istio-ecosystem:master Aug 21, 2024
3 checks passed
@rtay1188 rtay1188 deleted the Multi-service-handling branch September 18, 2024 18:56
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