-
Notifications
You must be signed in to change notification settings - Fork 308
Closed
Description
Describe the bug
I am awaiting await generic.DeleteNamespacedAsync<T>(...) but it never returns.
Kubernetes C# SDK Client Version
16.0.7
Server Kubernetes Version
1.30.5
Dotnet Runtime Version
net8
To Reproduce
- Follow the CRD example app
- Create an instance of the CR in a namespace
- Delete it from the namespace
await generic.DeleteNamespacedAsync<CResource>(
this.Namespace,
tunnel.Metadata.Name,
cancellationToken
);Expected behavior
- The resource id deleted from kubernetes
- This method returns immediately after
KubeConfig
N/A
Where do you run your app with Kubernetes SDK (please complete the following information):
- OS: Linux
- Environment: container
- Cloud: Docker Desktop
Additional context
I have a watcher going at the same time:
await foreach (var (eventType, resource) in generic.WatchNamespacedAsync<T>(this.Namespace, cancel: cancellationToken))This is detecting the resource being deleted and it keeps operating fine without hanging, I can manually create and delete more resources in kube and this watcher responds as normal. I'm also calling a PatchNamespacedAsync<T> and that one returns fine, its specifically deletion thats appears to hang.
Metadata
Metadata
Assignees
Labels
No labels