ArgoCD Application with PostSync Hook to demonstrate unexpected behavior
-
Apply AppProject to ArgoCD
kubectl apply -f hook-test.project.yaml
-
Apply Application to ArgoCD
kubectl apply -f hook-test.application.yaml
-
Log into ArgoCD Console
-
Open
hook-test
Application in the ArgoCD Console- Application should be "Out of Sync"
-
Sync the Application
When the Application Syncs, the Deployment should immediately start, but will take about 30 seconds to become "Ready". Once the Deployment is "Ready", the Post Sync Job should spin up and then delete when it is complete.
When the Application Syncs, both the Deployment and the Post Sync Job start immediately. The Deployment takes about 30 seconds to become "Ready" and shortly after the Post Sync Job completes and is deleted.