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

Use background delete by default; register deletes of CRs correctly #280

Merged
merged 3 commits into from
Nov 16, 2018

Conversation

hausdorff
Copy link
Contributor

No description provided.

@hausdorff hausdorff changed the title Use background delete by default; register deletes of CRDs correctly Use background delete by default; register deletes of CRs correctly Nov 16, 2018
@hausdorff
Copy link
Contributor Author

The logic of handling the various errors bubbling out of client-go has started to become very subtle, and resulted in a lot of duplicate code across create/delete/update. This PR is important to allow our partners to make progress (in particular on Istio) so I recommend we ship it, but I think we also need to come back and refactor the way we're passing around the discovery client and the client pool.

I've opened an issue to track this work: #281

Copy link
Member

@lblackstone lblackstone left a comment

Choose a reason for hiding this comment

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

Just minor issues, looks good overall

pkg/await/await.go Outdated Show resolved Hide resolved
pkg/await/await.go Outdated Show resolved Hide resolved
It is possible that if a CRD is deleted after the CR obtains a client
for its G/V/K, but before `Watch` is called, that `Watch` will terminate
with a 404. This should register as a deletion: if we successfully
created that CR before, and it is tracked by Pulumi, but the G/V/K is
now unregistered, or the resource is missing, we should consider this a
deletion.
@hausdorff
Copy link
Contributor Author

@lblackstone any more comments?

@hausdorff hausdorff merged commit 99ad798 into master Nov 16, 2018
@pulumi-bot pulumi-bot deleted the hausdorff/istio-2 branch November 16, 2018 21:59
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