-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hey, thanks for the work you've done on this project!
I've encountered an issue with a couple of the delete methods on the API classes:
error: Error: Kubernetes Resource Mistype: Expected "v1/Status", but was given "v1/Namespace". This is likely a library bug. Feel free to file an issue with a stack trace.
throw new Error(`Kubernetes Resource Mistype: `+
^
at Module.assertOrAddApiVersionAndKind (https://deno.land/x/kubernetes_apis@v0.3.2/common.ts:56:9)
at Module.toStatus (https://deno.land/x/kubernetes_apis@v0.3.2/builtin/meta@v1/structs.ts:419:10)
at CoreV1Api.deleteNamespace (https://deno.land/x/kubernetes_apis@v0.3.2/builtin/core@v1/mod.ts:193:19)
Namespace deletion is asynchronous, so the first API call returns a v1/Namespace object (with phase: Terminating), then only returns a v1/Status object when the deletion is complete.
Unfortunately, the API Reference doesn't explain/document this behaviour.
I've also encountered the same issue on the ApiextensionsV1Api.deleteCustomResourceDefinition method.
error: Error: Kubernetes Resource Mistype: Expected "v1/Status", but was given "apiextensions.k8s.io/v1/CustomResourceDefinition". This is likely a library bug. Feel free to file an issue with a stack trace.
throw new Error(`Kubernetes Resource Mistype: `+
^
at Module.assertOrAddApiVersionAndKind (https://deno.land/x/kubernetes_apis@v0.3.2/common.ts:56:9)
at Module.toStatus (https://deno.land/x/kubernetes_apis@v0.3.2/builtin/meta@v1/structs.ts:419:10)
at ApiextensionsV1Api.deleteCustomResourceDefinition (https://deno.land/x/kubernetes_apis@v0.3.2/builtin/apiextensions.k8s.io@v1/mod.ts:80:19)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working