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

Remove refreshes from reconcile functions #451

Closed
wants to merge 2 commits into from
Closed

Conversation

kingdonb
Copy link
Collaborator

Fix #450

I gave this a local test as 0.25.0-pre.3 and it didn't seem to harm anything!

If I made the source and the kustomization both visible, then they are both still visible after reconcile with source. There should be no need to call refresh, if we have sent async reconciles to the resource, and all visible resources are already in the informer's subscriptions, then I think we don't need to call refresh, we'll just get a callback when it's happening.

In my test, this made it possible to briefly observe the Kustomization's temporary unready state while it was reconciling. The git repo was definitely reconciled through the command, but the visible representation didn't budge, possibly because I was reconciling a repo that had no changes, so there was never going to be any progress to report from the Git Repository's end.

I will test this more, if there are other calls to refresh we should remove them too. I think we generally don't need to call that function anymore, except for as a response to the user's request when they manually click the button to ask for a refresh.

Kingdon Barrett added 2 commits July 24, 2023 11:59
I think there is no need for these refreshes, this change is aimed at
addressing #450

If we have sent async reconciles to the resource, and all visible
resources are in the informer's subscriptions, then I think we don't
need to call refresh, we'll just get a call when it's needed.

Signed-off-by: Kingdon Barrett <[email protected]>
don't leave it hanging around in comments, it's not coming back

Signed-off-by: Kingdon Barrett <[email protected]>
@kingdonb
Copy link
Collaborator Author

The function is also called when in deleteWorkload - there are a few places at least the function is still needed.

Since the node doesn't have a callback to delete itself from the tree view when the upstream resource disappears, we call it there. (Maybe we can add that later?)

It looks like the only place where we are passing a node into these functions is when building out subtrees.

@kingdonb
Copy link
Collaborator Author

kingdonb commented Jul 24, 2023

I'm building another prerelease from:

where this is merged into the edge branch. It's published, on Marketplace and on VSCodium (Open-VSX)

@kingdonb
Copy link
Collaborator Author

These changes have all been landed via #454 (Closing)

@kingdonb kingdonb closed this Jul 28, 2023
@kingdonb kingdonb deleted the skip-refresh branch July 28, 2023 14:13
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.

Prerelease - v0.24.1690210418 reconcile action folds up the treeview
1 participant