flux-iac / tofu-controller

A GitOps OpenTofu and Terraform controller for Flux
https://flux-iac.github.io/tofu-controller/
Apache License 2.0
1.31k stars 137 forks source link

sourceRef using labels #1295

Open hirenko-v opened 6 months ago

hirenko-v commented 6 months ago

Currently tofu controller suports just direct definition of sourceRef.

It would be nice to have some kind of selector to pick GiRepository using labels

akselleirv commented 5 months ago

Hello @hirenko-v !

Can you please the use-case for this?

A label selector for a GitRepository allows a Terraform resource to match with multiple GitRepository resources. Currently, however, each Terraform resource can only apply one Terraform module at a time.