Skip to content

Conversation

Baarsgaard
Copy link
Collaborator

@Baarsgaard Baarsgaard commented Aug 4, 2025

I noticed that in a few controllers getFolderUID is called once per instance rather than once overall.
Moved getFolderUID before the main synchronize loop in relevant controllers which gives a few benefits

  • The k8sclient cache is checked for the folder once per reconcile.
  • Early exit in AlertRuleGroup when folderUID cannot be resolved.

@github-actions github-actions bot added the chore label Aug 4, 2025
@Baarsgaard Baarsgaard force-pushed the chore_call_getfolderuid_once branch from 386c675 to b05453a Compare August 4, 2025 18:17
@Baarsgaard Baarsgaard force-pushed the chore_call_getfolderuid_once branch from b05453a to 5bb1b42 Compare August 4, 2025 18:18
@Baarsgaard Baarsgaard marked this pull request as ready for review August 4, 2025 18:23
@Baarsgaard Baarsgaard added this pull request to the merge queue Aug 16, 2025
Merged via the queue into master with commit 3f77966 Aug 16, 2025
16 checks passed
@Baarsgaard Baarsgaard deleted the chore_call_getfolderuid_once branch August 16, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants