我希望你能帮助我对我的问题有更多的了解。
目前我正在使用:
最近,我一直在调整 Terraform 上的 Helm 提供程序,以帮助我更有弹性地管理 Helm 版本。plan
能够做出改变并了解哪些内容发生了变化以及哪些内容保持不变,这很有帮助。它与基础设施细节融合得非常好,我只需一个工具就可以管理一切,这太棒了。
有件事让我有点困扰。这是terraform plan
值文件的预览,它仅显示已进行的一些更改,但不显示更改位置或更改内容。让我添加一个例子。
文件main.tf
:
# I'm using the "manifest" setting to calculate manifest diffs
provider "helm" {
kubernetes {
config_path = "~/.kube/config"
config_context = "clusterconfig"
}
experiments {
manifest = true
}
}
# The helm chart lives locally on my repo. I'm passing the values file and an
# override for the image tag.
resource "helm_release" "release" { …
Run Code Online (Sandbox Code Playgroud)