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

Throw error when yaml string has multiple documents #284

Closed kamushadenes closed 6 months ago

kamushadenes commented 6 months ago

Previously, if a YAML string with multiple documents was fed into kubectl_manifest, it would take only the first and fail silently.

This PR forces it to spit an error so it's properly handled by using kubectl_file_documents first.