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

MESH-5405-Create prefixed SEs #336

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

Punakshi
Copy link
Collaborator

@Punakshi Punakshi commented Sep 5, 2024

Checklist

🚨 Please review this repository's contribution guidelines.

  • I've read and agree to the project's contribution guidelines.
  • I'm requesting to pull a topic/feature/bugfix branch.
  • I checked that my code additions will pass code linting checks and unit tests.
  • I updated unit and integration tests (if applicable).
  • I'm ready to notify the team of this contribution.

Description

What does this change do and why?
Handles the canary, bluegreen, deployment to rollout migration

[Link to related ISSUE]

Thank you!

@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2024

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

Codecov Report

Attention: Patch coverage is 37.25490% with 128 lines in your changes missing coverage. Please review.

Project coverage is 71.02%. Comparing base (61e7c3f) to head (e553489).

Files with missing lines Patch % Lines
admiral/pkg/registry/testutils.go 9.09% 100 Missing ⚠️
admiral/pkg/clusters/serviceentry.go 15.00% 17 Missing ⚠️
admiral/pkg/clusters/configwriter.go 85.50% 5 Missing and 5 partials ⚠️
admiral/pkg/clusters/util.go 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #336      +/-   ##
==========================================
- Coverage   71.83%   71.02%   -0.81%     
==========================================
  Files          66       66              
  Lines        9269     9394     +125     
==========================================
+ Hits         6658     6672      +14     
- Misses       2251     2359     +108     
- Partials      360      363       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rtay1188
Copy link
Collaborator

Looks good - only thing is that need some comments to explain the service map structure and expectations of state syncer. Meaning, we should only have default and test keys, should only have one service in the array value for the test key, etc. (in getServiceEntryEndpoints)

Punakshi added 2 commits September 16, 2024 12:47
- Changed `testServiceKey` from "canary" to "testSvc"
- Enhanced error handling to check for empty endpoints
- Added detailed comments explaining service key usage scenarios
- Improved logic to handle services with `testServiceKey` in endpoint assignment
# Conflicts:
#	admiral/pkg/clusters/configwriter.go
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.

4 participants