banzaicloud / terraform-provider-k8s

Kubernetes Terraform provider with support for raw manifests
https://registry.terraform.io/providers/banzaicloud/k8s
MIT License
135 stars 30 forks source link

Reading missing resources marks the resources as missing #22

Closed mcfedr closed 4 years ago

mcfedr commented 4 years ago
Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets N/A
License Apache 2.0

When reading a resources that existed, but now doesnt, the plugin now reports to terraform that the resource is missing, which will cause it to be recreated.

Additional context

There is also a check for the error that the 'Kind' is missing, this might happen if the resources is a CRD, and the CRD itself has also been removed

Checklist