tofu-controller
tofu-controller copied to clipboard
Feature Request [Branch Planner]: Ability to specify additional paths to watch
Hi,
We are tackling a use case where we are integrating FluxCD with a terraform repo that contains many states, as our terraform is modular by components.
We have a Terraform resource for every state and the branch planner creates additional resources per state per PR. As a result we end up in a situation where every PR has 100s of comments, even though most of them are re: unmodified components. They just say 'No changes detected'.
The enablePathScope almost solves this issue. But the problem is that if we enable it, we'll stop detecting changes to shared modules that live in their own directories and are used by other components.
It would be great to be able to specify additionalPathsToWatch
property, that would contain other paths that should trigger new resources. Looking at the code it seems to be quite a straight forward change.
Would love to know your thoughts and would be happy to submit a PR.