Quantcast
Channel: Active questions tagged ruby - Stack Overflow
Viewing all articles
Browse latest Browse all 4623

How to delete resources by label with Kubeclient?

$
0
0

I am trying to delete multiple ConfigMaps at once using a label. With kubectl, I would do it as follow:

kubectl delete cm -l application=my-app

Kubeclient offers the delete_config_map method, but it requires a name.

# `k` is an instance of Kubeclient::Clientk.delete_config_map('my-config-map')

Is there a way to acheive the same behavior as the CLI here?


Viewing all articles
Browse latest Browse all 4623


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>