From 2885531f6987a00a74dd2863f95219b52183335f Mon Sep 17 00:00:00 2001 From: Adphi Date: Tue, 19 Sep 2023 18:21:57 +0200 Subject: [PATCH] add stringData to Secret's sensitive fields Signed-off-by: Adphi --- kubernetes/resource_kubectl_manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/resource_kubectl_manifest.go b/kubernetes/resource_kubectl_manifest.go index 1ab0d7fd..83b6cd6e 100644 --- a/kubernetes/resource_kubectl_manifest.go +++ b/kubernetes/resource_kubectl_manifest.go @@ -265,7 +265,7 @@ metadata: if hasSensitiveFields { sensitiveFields = expandStringList(sensitiveFieldsRaw.([]interface{})) } else if parsedYaml.GetKind() == "Secret" && parsedYaml.GetAPIVersion() == "v1" { - sensitiveFields = []string{"data"} + sensitiveFields = []string{"data", "stringData"} } for _, s := range sensitiveFields {