删除所有发行版 [英] Helm delete all releases
问题描述
我正在尝试找到一种删除Helm中所有已部署发行版的方法.
I'm trying find a way to delete all deployed releases in Helm.
似乎Helm 不支持使用--all
删除所有发行版否则.
It appears that Helm does not support deleting all releases, with --all
or otherwise.
是否有另一种方法可以在一个命令中删除所有Helm版本?
Would there be another way to delete all Helm releases in one command?
推荐答案
要使用单个命令删除所有Helm版本(在Helm v2.X中),可以使用一些不错的旧bash.只需将helm ls --short
的输出传递到xargs
,然后为每个发行版运行helm delete
.
To delete all Helm releases(in Helm v2.X) with a single command, you can use some good old bash. Just pipe the output of helm ls --short
to xargs
, and run helm delete
for each release.
helm ls --all --short | xargs -L1 helm delete
根据
helm ls --all --short | xargs -L1 helm delete --purge
这篇关于删除所有发行版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!