'Skuber delete items in a specific namespace
I am using skuber 2.4.0.
Is there a way to use the skuber client.delete an object in a specific namespace?
I understand that when I create a client I can specify a namespace. But for example when creating a job you can specify any namespace in the metadata.
Seems weird to need to create a new client just for deletion.
Solution 1:[1]
I suggest you open an issue in the github repo for further help. https://github.com/hagay3/skuber/issues
Regarding your question, you can use the following method:
def usingNamespace(newNamespace: String): KubernetesClient
example: https://github.com/hagay3/skuber/blob/master/client/src/it/scala/skuber/NamespaceSpec.scala#L53
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
