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

🐛 workload/resource: handle upsynced resources #2533

Merged

Conversation

jmprusi
Copy link
Member

@jmprusi jmprusi commented Dec 23, 2022

Summary

This PR fixes an issue with upsynced resources getting it's state changed into "Sync" when the initial synctarget is gone or unhealthy.

If the resource is upsynced, check if the synctarget still exists, if not, delete the resource, if the synctarget still exists, do nothing, exit early.

Requires

Related issue(s)

Fixes #2530

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 23, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 23, 2022

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@jmprusi jmprusi force-pushed the jmprusi/upsync-scheduling-fix branch from a79b7c4 to b394ea4 Compare December 23, 2022 16:38
@ncdc ncdc added the area/transparent-multi-cluster Related to scheduling of workloads into pclusters. label Jan 4, 2023
@jmprusi jmprusi force-pushed the jmprusi/upsync-scheduling-fix branch 3 times, most recently from c926c2d to 6a79db2 Compare February 6, 2023 16:07
@jmprusi jmprusi marked this pull request as ready for review February 6, 2023 16:08
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 6, 2023
@openshift-ci openshift-ci bot requested review from davidfestal and kylape February 6, 2023 16:08
@jmprusi jmprusi force-pushed the jmprusi/upsync-scheduling-fix branch 6 times, most recently from a28b486 to 067a5c4 Compare February 7, 2023 14:01
@jmprusi jmprusi force-pushed the jmprusi/upsync-scheduling-fix branch 3 times, most recently from 4f95e36 to 1207ddc Compare February 7, 2023 17:30
@jmprusi jmprusi force-pushed the jmprusi/upsync-scheduling-fix branch from 1207ddc to 0f30c70 Compare February 7, 2023 17:41
This PR fixes an issue with upsynced resources getting it's state
changed into "Sync" when the initial synctarget is gone or unhealthy.

If the resource is upsynced, check if the synctarget still exists, if not,
delete the resource, if the synctarget still exists, do nothing, exit early.
@jmprusi jmprusi force-pushed the jmprusi/upsync-scheduling-fix branch from 0f30c70 to 3e7ec62 Compare February 7, 2023 17:42
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 7, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidfestal

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 7, 2023
@openshift-merge-robot openshift-merge-robot merged commit c48c567 into kcp-dev:main Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/transparent-multi-cluster Related to scheduling of workloads into pclusters. lgtm Indicates that a PR is ready to be merged.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Bug: Upsynced resources are "Synced" when the initial synctarget is not ready/gone
4 participants