Open jonathanribas opened 1 year ago
This issue is stale because it has been open 60 days with no activity.
Hello. It seems to me that you are abusing the metric analysis system as a way to run pre-sync hooks.
If you are already using Argo CD, wouldn't it be better to use a "real" pre-sync hook instead? (i.e. outside of Argo Rollouts)
Hi,
Application: Adobe Commerce Infrastructure run on Kubernetes with HPA ArgoCD: 2.5.6 ArgoCD Rollout version 1.4.0
What do we want to do?
We would like to deploy a new version of our Adobe Commerce application using blue / green strategy.
Why?
Adobe Commerce needs to run a mandatory command that enables / disable modules, update data configuration on new application version.
Expected result
This command must run only one time on new application version before this one can be ready to receive traffic. If this command is successful, new application version can be promoted and receive traffic, old version should not receive any traffic anymore.
Actual result
If this job fails to run, new application version should be killed and we must stay on old version. We need to launch this Adobe Commerce command again on old version to make things work again correctly. Otherwise we stay in a bastard version and application doesn't work as expected.
Main issue we would like to fix
We have noticed that sometimes maybe when our application scales up, Analysis template runs this Adobe Commerce command a second time which creates huge issues on our application. That's why we want it to run only one time on new version that don't receive any traffic yet. Basically we want to run Analysis template a single time only. As we are not expert on ArgoCD rollouts we have tried to create a lock file on a shared folder to make sure it doesn't run a second time but unfortunately it's not working as expected.
Sorry Yaml is a bit broken but you have how we do it today:
Thanks in advance for your precious help!!!