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

[WIP] Wait for cr from pr #48

Closed
wants to merge 6 commits into from

Conversation

sseago
Copy link

@sseago sseago commented Jan 9, 2020

Wait for CRDs to be ready before restoring CRs.

The upstream PR (vmware-tanzu#1937 ) is currently still open. It's been reviewed but not merged yet, so it may not be final. This PR cherry-picks the commits from that PR. If necessary we can merge this as-is and, if there are any changes before it's merged, we can revert and pull in the final commit.

It's not yet tested in my environment -- I will need to do that before merging.

When restoring CRDs, we should wait for the definition to be ready and
available before moving on to restoring specific CRs.

While the CRDs are often ready by the time we get to restoring a CR,
there is a race condition where the CRD isn't ready.

This change waits on each CRD at restore time.

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
@sseago
Copy link
Author

sseago commented Jan 16, 2020

I hit a bug in the implementation of the PR that I've reported upstream. In addition there's one other problem with this that's being worked upstream. I'll leave the PR open (still WIP) for now until it's clearer whether the resolution will be to fix this PR or open a new one.

@sseago
Copy link
Author

sseago commented Jan 23, 2020

This in-progress PR has some bugs in it and is being reworked. Closing this PR and will open a new one once the fixes are posted upstream.

@sseago sseago closed this Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants