gavinbunney / terraform-provider-kubectl

Terraform provider to handle raw kubernetes manifest yaml files
https://registry.terraform.io/providers/gavinbunney/kubectl
Mozilla Public License 2.0
628 stars 108 forks source link

yaml_incluster property is sensitive #266

Open nwsparks opened 1 year ago

nwsparks commented 1 year ago

Is there a way to unmask this? im not seeing any other changes occurring so trying to figure out what's going on inside this field.

image

hguermeur commented 1 year ago

At the debug level (export TF_LOG=debug), you have the details :
2023-06-21T09:14:59.979+0200 [DEBUG] provider.terraform-provider-kubectl_v1.14.0: 2023/06/21 09:14:59 [TRACE] yaml drift detected in xxx for spec.xxx.#, was: 0 now: 3

cveld commented 2 months ago

I feel I have the same issue:

# module.Infrastructure.kubectl_manifest.default_ingress_controller_prod[0] will be updated in-place
  ~ resource "kubectl_manifest" "default_ingress_controller_prod" {
        id                      = "/apis/approuting.kubernetes.azure.com/v1alpha1/nginxingresscontrollers/default"
        name                    = "default"
      ~ yaml_body               = (sensitive value)
        # (13 unchanged attributes hidden)
    }

What I did is, I exported the plan to json format and investigated the proposed change.