From 717e1cc2ce85f1daee1d9f713d1ce54ee8cbc310 Mon Sep 17 00:00:00 2001 From: Andreas Scharf Date: Mon, 25 Nov 2024 03:06:38 +0100 Subject: [PATCH] reset yaml_body_parsed and yaml_incluster to prevent inconsistent planning (#198) --- kubernetes/resource_kubectl_manifest.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/resource_kubectl_manifest.go b/kubernetes/resource_kubectl_manifest.go index 4906f18a..d494f6d1 100644 --- a/kubernetes/resource_kubectl_manifest.go +++ b/kubernetes/resource_kubectl_manifest.go @@ -220,6 +220,8 @@ metadata: if !d.NewValueKnown("yaml_body") { log.Printf("[TRACE] yaml_body value interpolated, skipping customized diff") + d.SetNewComputed("yaml_body_parsed") + d.SetNewComputed("yaml_incluster") return nil }