我希望看到与之前版本相比对 Helm 图所做的更改 - 运行 helm list
我看到有 xx 次修订 - 有什么办法可以看出差异吗?我知道回滚 helm rollback <RELEASE> 0
但只是想知道发生了什么变化
最佳答案
在 helm website你可以找到一些插件。
其中一个叫helm-diff ,它可以在版本之间产生差异。
下面是这个插件的使用方法:
$ helm diff release -h
This command compares the manifests details of a different releases created from the same chart
It can be used to compare the manifests of
- release1 with release2
$ helm diff release [flags] release1 release2
Example:
$ helm diff release my-prod my-stage
Here is explained how to install the plugin .TLDR:如果您使用 helm 版本 > 2.3.x 开玩笑:
helm plugin install https://github.com/databus23/helm-diff
让我知道这可以解决您的问题。如果您有任何其他问题,我很乐意回答。
关于kubernetes - 如何查看新 Helm 图版本中的变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62770290/