Skip to content

Conversation

@zhiweiyin318
Copy link
Contributor

No description provided.

@zhiweiyin318 zhiweiyin318 force-pushed the delete-crd-work branch 3 times, most recently from 68abd4c to fdcb544 Compare July 24, 2025 07:18
@zhiweiyin318
Copy link
Contributor Author

/assign @qiujian16
/assign @elgnay

@zhiweiyin318 zhiweiyin318 force-pushed the delete-crd-work branch 2 times, most recently from 5a39e2c to cc838df Compare July 24, 2025 08:23
if works.Items[0].DeletionTimestamp.IsZero() {
crdWork := works.Items[0]
if crdWork.DeletionTimestamp.IsZero() {
return r.clientHolder.WorkClient.WorkV1().ManifestWorks(cluster.Name).
Copy link
Contributor

Choose a reason for hiding this comment

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

I recall that the registration controller is responsible for deleting this ManifestWork. Why is the import-controller also deleting it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you are right. do not need delete again here.
fixed.

Comment on lines 225 to 226
if crdWork.DeletionTimestamp.IsZero() ||
!meta.IsStatusConditionTrue(crdWork.Status.Conditions, workv1.WorkDeleting) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe !meta.IsStatusConditionTrue(crdWork.Status.Conditions, workv1.WorkDeleting is sufficient. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes. fixed.

@elgnay
Copy link
Contributor

elgnay commented Jul 25, 2025

/lgtm
/hold On hold in case someone else wants to review.

@qiujian16
Copy link
Contributor

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Jul 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

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

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:
  • OWNERS [elgnay,qiujian16,zhiweiyin318]

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

@zhiweiyin318
Copy link
Contributor Author

/unhold

@sonarqubecloud
Copy link

@openshift-merge-bot openshift-merge-bot bot merged commit d192672 into stolostron:main Jul 25, 2025
11 of 12 checks passed
@zhiweiyin318 zhiweiyin318 deleted the delete-crd-work branch July 25, 2025 07:15
@elgnay
Copy link
Contributor

elgnay commented Oct 15, 2025

/cherry-pick backplane-2.9

@openshift-cherrypick-robot
Copy link
Contributor

@elgnay: new pull request created: #801

In response to this:

/cherry-pick backplane-2.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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.

4 participants