Skip to content

Conversation

@AiRanthem
Copy link
Member

Ⅰ. Describe what this PR does

Ⅱ. Does this pull request fix one issue?

Ⅲ. Special notes for reviews

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign fillzpp for approval by writing /assign @fillzpp in a comment. For more information see:The Kubernetes Code Review Process.

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

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

@codecov
Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.57%. Comparing base (87f7e65) to head (c78c5f3).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #302      +/-   ##
==========================================
+ Coverage   47.51%   47.57%   +0.06%     
==========================================
  Files          63       63              
  Lines        9797     9809      +12     
==========================================
+ Hits         4655     4667      +12     
  Misses       4585     4585              
  Partials      557      557              
Flag Coverage Δ
unittests 47.57% <100.00%> (+0.06%) ⬆️

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.

Signed-off-by: AiRanthem <[email protected]>
@kruise-bot kruise-bot added size/L and removed size/M labels Aug 8, 2025
Signed-off-by: AiRanthem <[email protected]>
@kruise-bot kruise-bot added size/XXL and removed size/L labels Aug 8, 2025
Signed-off-by: AiRanthem <[email protected]>
Signed-off-by: AiRanthem <[email protected]>
}
}

func AnnotationsDeepEqual(a, b map[string]string, keysToDelete ...string) bool {
Copy link
Member

Choose a reason for hiding this comment

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

this func seems readonly, but it actually change the map a and b, consider move the mutation part out of the func

if obj.Annotations == nil {
obj.Annotations = map[string]string{}
}
obj.Annotations[RolloutStyleAnnotation] = src.Annotations[RolloutStyleAnnotation]
Copy link
Member

Choose a reason for hiding this comment

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

why copy the annotation to v1beta1 , v1beta1 should save the information in the Spec.Strategy.Canary.EnableExtraWorkloadForCanary

if obj.Labels == nil {
obj.Labels = map[string]string{}
}
obj.Labels[v1beta1.RolloutIDLabel] = src.Spec.DeprecatedRolloutID
Copy link
Member

Choose a reason for hiding this comment

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

the label should read from the workload label not the rollout label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants