Cancellation on delete could cause us to stop tracking object #245
Labels
area/resource-management
Issues related to Kubernetes resource provisioning, management, await logic, and semantics generally
kind/bug
Some behavior is incorrect or out of spec
Milestone
Following up from #244, in the process of review, I realized that in a handful of cases, it is possible that ctrl-c during a delete could cause the Kubernetes provider to stop tracking the object, even though it exists.
The reason is that provider does not actually check whether the returned value conforms to
await.InitializationError
, which is what theawait
package uses to signal that the API server has acknowledged the operation, but has not yet completed it.The fix seems pretty straightforward:
kubeProvder#Delete
(similar to how we do it here:pulumi-kubernetes/pkg/provider/provider.go
Line 439 in 2efb314
InitializationError
to something more appropriate -- perhapsPartialError
?The text was updated successfully, but these errors were encountered: