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

🐛 skip sync of appliedmanifestwork if work is not applied yet #244

Merged

Conversation

elgnay
Copy link
Contributor

@elgnay elgnay commented Aug 4, 2023

Summary

In a case where a managed cluster switches to a new hub with the same hub hash, the same manifestworks will be created for this cluster on the new hub without any condition. Once the work agent connects to the new hub, the applied resources of those manifestwork on this managed cluster should not be removed before the manifestworks are applied the first time.

Related issue(s)

Fixes #

Signed-off-by: Yang Le <yangle@redhat.com>
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.03% 🎉

Comparison is base (6d6a6f1) 60.35% compared to head (b9e7029) 60.38%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #244      +/-   ##
==========================================
+ Coverage   60.35%   60.38%   +0.03%     
==========================================
  Files         132      132              
  Lines       13590    13594       +4     
==========================================
+ Hits         8202     8209       +7     
+ Misses       4633     4631       -2     
+ Partials      755      754       -1     
Flag Coverage Δ
unit 60.38% <100.00%> (+0.03%) ⬆️

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

Files Changed Coverage Δ
...nifestcontroller/appliedmanifestwork_controller.go 55.10% <100.00%> (+1.25%) ⬆️

... and 1 file with indirect coverage changes

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

@elgnay elgnay closed this Aug 4, 2023
@elgnay elgnay reopened this Aug 4, 2023
@elgnay elgnay closed this Aug 4, 2023
@elgnay elgnay reopened this Aug 4, 2023
@qiujian16
Copy link
Member

/approve
/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 15, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elgnay, qiujian16

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

The pull request process is described 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

@openshift-merge-robot openshift-merge-robot merged commit fb6ce75 into open-cluster-management-io:main Aug 15, 2023
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