Skip to content

Comments

Feat | Add refresh annotation to first ApplicationSet to force git pull#354

Merged
dag-andersen merged 2 commits intomainfrom
feat/appset-refresh-annotation
Feb 22, 2026
Merged

Feat | Add refresh annotation to first ApplicationSet to force git pull#354
dag-andersen merged 2 commits intomainfrom
feat/appset-refresh-annotation

Conversation

@dag-andersen
Copy link
Owner

Summary

  • Adds a SetApplicationSetRefreshAnnotation() method to ArgoResource that sets the argocd.argoproj.io/application-set-refresh annotation to "true" on ApplicationSet resources
  • Sets this refresh annotation on only the first ApplicationSet during convertAppSetsToApps, triggering ArgoCD to pull the latest state from git; subsequent ApplicationSets reuse the cached data
  • Uses the official ArgoCD constant (common.AnnotationApplicationSetRefresh) for the annotation key

@dag-andersen dag-andersen merged commit 4a786d5 into main Feb 22, 2026
3 checks passed
@dag-andersen dag-andersen deleted the feat/appset-refresh-annotation branch February 22, 2026 23:26
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.

1 participant