<p>I am applying the app-of-apps with Argo CD on my application deployments, where I have a directory with the applications definitions, and then a directory with resource definitions and a <code>kustomization.yaml</code> file. When a new version is released, all I do is run <code>kustomize set image ...</code> in a pipeline that will issue an autocommit and Argo will pick it up.</p>
<p>I currently have the following structure of files and it is repeated for other environments, like staging and dev.</p>
<pre class="lang-sh prettyprint-override"><code>deployments
├── production
│   ├── app-1
│   │   ├── kustomization.yaml
|   |   └── deployment.yaml
│   ├── app-2
│   │   ├── kustomization.yaml
|   |   └── deployment.yaml
└───└── apps
        ├── app1.yaml
        └── app2.yaml 
</code></pre>
<p>I know decided to throw myself in the Helm world and create charts for each application with the required resource definitions. Then, in each environment folder I will keep an appropriate <code>values.yaml</code> file to override the proper values for each environment application deployment.</p>
<p>I would like to have the same flow as before, where the pipeline updates the new image tag (this time in the <code>values.yaml</code> file), creates the autocommit and Argo will sync it.</p>
<p>Is it possible to somehow do a <code>kustomize set image...</code> in each of the <code>values.yaml</code> file accordingly? Or what would be a smarter approach here?</p>

<p>In my case, I implemented a simple github action that fix 'yaml' format file in another repo then commit it.</p>
<p>I have two kinds of github repositories, the one is for application development and the other for storing k8s manifests which app-of-apps pattern is applied.</p>
<p>There is a github action for CI/CD in my development repository triggered when dev branches are merged to the 'main'.</p>
<p>It build new docker image and publish it to Docker hub(or AWS ECR) with version tag, then update values.yaml with the tag in k8s manifests repository helm chart via another github action (<a href="https://github.com/alphaprime-dev/fix-yaml-in-another-repo/blob/main/action.yml" rel="nofollow noreferrer">'fix-yaml-in-another-repo'</a>)</p>
