Skip to content

Feature: copy annotations and labels from the stable service to the canary service#301

Merged
kruise-bot merged 2 commits intoopenkruise:masterfrom
AiRanthem:feature/copy-service-metadata-250804
Aug 8, 2025
Merged

Feature: copy annotations and labels from the stable service to the canary service#301
kruise-bot merged 2 commits intoopenkruise:masterfrom
AiRanthem:feature/copy-service-metadata-250804

Conversation

@AiRanthem
Copy link
Copy Markdown
Member

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Special notes for reviews

…vice

Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.52%. Comparing base (87f7e65) to head (35ffa86).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #301      +/-   ##
==========================================
+ Coverage   47.51%   47.52%   +0.01%     
==========================================
  Files          63       63              
  Lines        9797     9799       +2     
==========================================
+ Hits         4655     4657       +2     
  Misses       4585     4585              
  Partials      557      557              
Flag Coverage Δ
unittests 47.52% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

}

func (m *Manager) createCanaryService(c *TrafficRoutingContext, cService string, spec corev1.ServiceSpec) (*corev1.Service, error) {
func (m *Manager) createCanaryService(c *TrafficRoutingContext, cService string, spec corev1.ServiceSpec, annotations, labels map[string]string) (*corev1.Service, error) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we have to copy the metadata, then just pass the service object instead of servicespec

Signed-off-by: AiRanthem <zhongtianyun.zty@alibaba-inc.com>
Copy link
Copy Markdown
Member

@furykerry furykerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@kruise-bot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: furykerry

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kruise-bot kruise-bot merged commit 00aae12 into openkruise:master Aug 8, 2025
32 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants