Skip to content

feat(tracker): enable tracking of all kustomizations in a cluster#262

Merged
dblinkhorn merged 2 commits intomainfrom
dblinkhorn/cluster-wide-kustomization-tracking
Apr 2, 2026
Merged

feat(tracker): enable tracking of all kustomizations in a cluster#262
dblinkhorn merged 2 commits intomainfrom
dblinkhorn/cluster-wide-kustomization-tracking

Conversation

@dblinkhorn
Copy link
Copy Markdown
Contributor

This PR enables flux-commit-tracker to watch all Kustomization resources in a given cluster, instead of only the Kustomization in its own namespace, as it currently does.

We are keeping the existing metrics model the same: one duration metric per Kustomization apply, using deployment_tools commit timestamps from exporter-info and reconciliation success time from the Kustomization status.

Changes

  • Removed the old single Kustomization cache restriction
  • Added an in-memory exporter-info cache keyed by repositoryURL/appliedRevision to avoid repeated OCI fetches for the same revision

The tracker now:

  • watches Kustomization objects cluster-wide
  • ignores unsupported Kustomization objects (e.g. non-OCI Kustomizations)
  • records one metric per relevant apply event

NOTE: This PR does not include the deployment RBAC changes that will be needed for the tracker to access all Kustomizations in a cluster. A follow-up PR will address this.

Closes #261.

@dblinkhorn dblinkhorn requested a review from a team as a code owner March 27, 2026 22:08
Comment thread internal/tracker/tracker.go
@dblinkhorn dblinkhorn requested review from a team and zerok March 30, 2026 17:31
Copy link
Copy Markdown

@juliajohannesen juliajohannesen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for knocking this out!

@dblinkhorn dblinkhorn added this pull request to the merge queue Apr 2, 2026
Merged via the queue into main with commit f69d71f Apr 2, 2026
17 checks passed
@dblinkhorn dblinkhorn deleted the dblinkhorn/cluster-wide-kustomization-tracking branch April 2, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable tracking of all Kustomizations in a cluster

3 participants