Please provide an opt-out for Flux receiver creation

Hi,

Since updating to GitLab 16.4.0, our FluxCD-managed clusters are now reporting a reconciliation of GitRepository resource every 5 minutes. Although this would be a nice feature for some users, because our clusters are already configured, it makes it very difficult to observe events of consequence.

I believe the feature was described and added here: !947 (merged)

Could you please provide either a way to configure the receiver being injected or a way to disable it?

Screen_Shot_2023-10-09_at_9.52.05_PM

Implementation Guide

  • Add a new configuration option in the Flux agent configuration here.
    • Suggestion:
      • name: enable_project_reconciliation
      • default: true (set the default here)
  • Do not start the project reconciliation goroutine here depending on the new configuration option. The cfg argument of the linked function should contain that option.
  • Nice to have: don't create the reconciliation triggerer when it's disabled, see here.
  • Add unit tests
  • Manually test behavior
Edited by Timo Furrer