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

Handling multiple resources in content by yaml seperator #71

Open rishi-anand opened 3 years ago

rishi-anand commented 3 years ago
Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets fixes #69
License Apache 2.0

What's in this PR?

If there are multiple resources in a manifest seperated by --- then all resources provided in manifest will be created/updated

Additional context

Checklist

rishi-anand commented 3 years ago

@bonifaido, We can have support of multiple resources in a manifest while. This will benefit a lot of users who are actively using it for provisioning resources on k8s. With above change, we should also add fix for https://github.com/banzaicloud/terraform-provider-k8s/issues/68, so that if a resource which is in content(which has multiple resources) already exists then it should be patched.