Terraform version: 1.0.1 (it seems terraform -v shows wrong data, since I use Terraform Cloud and I set terraform version to 1.0.3)
Provider version: 0.5.0
Kubernetes version: 1.21.2
Failed running command "cd '/terraform' && envdir /env terraform show -json /terraform/terraform.tfplan" (exit 1)
Output: Failed to marshal plan to json: error in marshalResourceDrift:
failed to encode refreshed data for module.kubernetes.module.cluster.kubernetes_manifest.cert-issuer-letsencrypt as JSON:
attribute "object": attribute "metadata":
attributes "annotations", "clusterName", "creationTimestamp", "deletionGracePeriodSeconds", "deletionTimestamp", "finalizers", "generateName", "generation", "labels", "managedFields", "ownerReferences", "resourceVersion", "selfLink", and "uid" are required
Important Factoids
References
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform, Provider, Kubernetes versions
Affected Resource(s)
kubernetes_manifest
Terraform Configuration Files
Debug Output
Panic Output
Steps to Reproduce
Issuer
CRD (cert-manager 1.4.1) with kubernetes-alpha 0.4.1terraform apply
Expected Behavior
Terraform fetches fields it previously didn't know about and updates state.
Actual Behavior
Terraform doesn't see CRD's fields in Kubernetes and can't update them in the state and fails at the end of
terraform apply
execution:Important Factoids
References
Community Note