Add ansible watch config to run for every update type #30
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/feature
Categorizes issue or PR as related to a new feature.
Feature Request
Describe the problem you need a feature to resolve.
I would like to run my playbook in response to all changes of the parent resource, including labels. In my situation, it is important that labels on the parent resource get propagated to its children. However, this isn't currently possible. In the current implementation, reconciliation only happens when the resource generation or annotations (optionally) change. There is no way to trigger reconciliation based on any other changes, such as the labels or (very generically) the resourceVersion.
Describe the solution you'd like.
I would like a new configuration to be available similar to
watchAnnotationsChanges
but for other change types. I can see that this is implemented using AnnotationChangedPredicate, and there does seem to be a LabelChangedPredicate and ResourceVersionChangedPredicate.The more types of changes the user enables, the more careful they will need to be about creating reconciliation loops. This is especially true if reconciliation happened with every resourceVersion change. Despite this, I think it is valuable to offer these features and warn the users rather than make it impossible.
The text was updated successfully, but these errors were encountered: