https://github.com/databus23/helm-diff
如果我們在做 Helm upgrade 的話,可能會想知道舊 Revision 和新的 Revision 有什麼差異,讓我知道接下來會有什麼變更,這時候就可以用到 Helm Diff Plugin
執行以下指令:
helm plugin install <https://github.com/databus23/helm-diff>
其實就是在原本的 helm upgrade 前面加上 diff 而已:
helm diff upgrade $RELEASE_NAME $CHART_DIR --namespace $NAMESPACE --values values.yaml || true
附上一些 Uage:
Usage:
diff [flags]
diff [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
release Shows diff between release's manifests
revision Shows diff between revision's manifests
rollback Show a diff explaining what a helm rollback could perform
upgrade Show a diff explaining what a helm upgrade would change.
version Show version of the helm diff plugin