将 Helm 默认输出格式设置为 YAML

发布于 2025-01-21 01:30:46 字数 472 浏览 2 评论 0原文

如何将所有头盔的默认输出设置为yaml而不是table

我一直在使用桌子格式(见下文)。

我希望这是默认值。这很整洁 - 但是我是否真的必须每次键入-o yaml

How do I set the default output of all helm to yaml instead of table?

I'm always fighting with the table format (see below).
enter image description here

I want this to be the default. It's much neater - but do I really have to type -o yaml every time?
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黎夕旧梦 2025-01-28 01:30:46

您可以为外壳创建一个别名,类似的东西

alias hl='helm list -o yaml'

,然后将其添加到〜/.basrc或〜/.zshrc或所使用的Shell RC文件中。

在此之后,调用hl将为您提供所需的结果

You can create an alias for your shell, something like

alias hl='helm list -o yaml'

and add it to your ~/.basrc or ~/.zshrc or whichever shell rc file you are using.

After that invoking hl will give you desired result

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文