openshift / openshift-restclient-java

Other
78 stars 112 forks source link

Remove labels from a resource #473

Closed Jelledb closed 2 years ago

Jelledb commented 2 years ago

Hey,

With the current API models it does not seem that I am able to remove any labels from (in my case) a namespace. I can only view my labels and add any labels.

I also tried removing certain keys from the labels map, but it is a non-mutable map so the actual values are not removed.

(Kotlin code)

val namespace = project.namespace
keysToRemove.forEach { namespace.labels.remove(it) }

Would be great if this lib could support this operation.

Jelledb commented 2 years ago

I see you're not developing this library anymore. I'll have a look at the fabric8 one.

adietish commented 2 years ago

Hi @Jelledb, I'm afraid but yes, we're not developing it any more. We started using https://github.com/fabric8io/kubernetes-client in our new projects. Fabric8 kubernetes-client works well and is very feature complete. So it didn't make sense for us to develop this client any further.