AgentSkillsCN

argocd-refresh-after-push

在应用嵌套应用的设置中,于 Git 推送后刷新 ArgoCD 应用。

SKILL.md
--- frontmatter
name: argocd-refresh-after-push
description: Refresh ArgoCD applications after git push in app-of-apps setup.

What I do

  • If argocd app sync fails with an auth error, log in with SSO using the ArgoCD URL defined in charts/templates/platform/services/gitops/argocd.yaml (e.g. argocd.chik4ge.me).
    • argocd login <argocd-host> --grpc-web --sso
  • After git push, refresh the app-of-apps application first using argocd app sync apps --grpc-web.
    • Run this when the git push includes changes to Application YAMLs.
  • Then refresh each changed application using argocd app sync <changed-application> --grpc-web.
  • Confirm each refreshed application's last commit matches git status.
  • Verify the intended changes are applied.

When to use me

Use this after pushing GitOps changes when ArgoCD is managed by an app-of-apps.