You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the desire for batch (all) operations, but this, as proposed, is too dangerous. If someone forgets to set the name they'd inadvertently wiping out everything. This "all" mode would need to be switched on explicitly to help avoid unintentional destruction of any resources.
… type (#517)
make name optional to delete all resources for the specified resource type
SUMMARY
closes#504
k8s module should allow deleting all namespace resources for the specified resource type.
ISSUE TYPE
Feature Pull Request
COMPONENT NAME
k8s
ADDITIONAL INFORMATION
Delete all Pods from namespace test
- k8s:
namespace: test
kind: Pod
api_version: v1
delete_all: true
state: absent
Reviewed-by: Gonéri Le Bouder <[email protected]>
Reviewed-by: Mike Graves <[email protected]>
Reviewed-by: Bikouo Aubin
SUMMARY
Currently kubernetes.core.k8s requires either "name" or "label_selector" to be specified. I want to be able to run an operation on all objects.
ISSUE TYPE
COMPONENT NAME
kubernetes.core.k8s
ADDITIONAL INFORMATION
Effectively, I am proposing an equivalent to kubectl --all option. For example, I would like to be able to delete all pods like this:
The text was updated successfully, but these errors were encountered: