Manual sync does not respect sync waves? #19487
patrickjane
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made an ArgoCD application which points to a repository containing a helm chart (app of apps pattern). This helm chart contains several sub-apps as well as custom resources, such as:
kind: Application
/ helm)kind: KafkaNodePool
/kind: Kafka
/kind: KafkaTopic
)I defined the YAMLs & sync-waves so that the strimzi-operator is deployed first, as it will also pull in the corresponding CRDs for the kafka cluster definitions. I set the
SkipDryRunOnMissingResource
flag for the kafka cluster resources, as otherwise ArgoCD will complain about missing CRDs right away.Now, when I have everything set on auto-sync (the root-application, as well as the sub-apps in the git repo under
/apps
), everything is working well.However, what I actually want, is that the root-application is set on manual sync, but whenever it is manually synced, all sub-apps shall be automatically deployed, without any more manual interaction. I thus disabled auto-sync on the root-app, but kept auto-sync on the sub-apps.
This leads to the issue that once I press the sync button for the root-app, the strimzi-operator will popup and start to sync, however ArgoCD seems to disregard the sync waves, and instead continue to deploy the kafka cluster right away. Since it takes around a minute or so for the strimzi-operator (& the CRDs) to be deployed, ArgoCD will bail out and fail instantly when trying to sync the kafka cluster, complaining about missing CRDs (which is correct at this point).
So, unlike in full-auto mode, ArgoCD does not seem to honor the sync waves when the root-app is manually synced. Is this behaviour intended, or do I have a bug in my setup somewhere?
The root application looks like this:
In the referenced git repository, I have:
The strimzi operator YAML looks like this:
The kafka-cluster.yml looks like this:
Beta Was this translation helpful? Give feedback.
All reactions