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

handle multi-document YAMLs without panic #49

Closed bonifaido closed 4 years ago

bonifaido commented 4 years ago

Signed-off-by: Nandor Kracser bonifaido@gmail.com

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #48 , fixes #7
License Apache 2.0

What's in this PR?

Handling multi-document YAMLs in a way that the first non-empty document will be processed only. This fixes an ugly panic with multi-document YAMLs.