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
609 stars 102 forks source link

Error during plan when a multi-document YAML manifest is provided #268

Open skycoop opened 1 year ago

skycoop commented 1 year ago

I was just caught off guard by multiple resources not being deployed due to the fact that they were present in a multi-document manifest (this seems to have also happened in #5450).

Because the provider is dropping extra documents silently, it's really hard to know this has happened or debug if you notice the missing resources. Instead, the provider should error when it receives unexpected documents and recommends the use of kubectl_file_documents to prevent the issue.