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
612 stars 105 forks source link

Support for recursive globs #245

Open torhovland opened 1 year ago

torhovland commented 1 year ago

When I have a nested tree of manifest files, this alone doesn't work:

data "kubectl_path_documents" "docs" {
  pattern = "${path.module}/manifests/**/*.yaml"
}

I need to do this as well in order to get the second level of directories:

data "kubectl_path_documents" "nested" {
  pattern = "${path.module}/manifests/**/**/*.yaml"
}