Add a ressource to multiple phases (presync and deploy) in argoCd

51 Views Asked by At

In ArgoCd we work intesively with the the preSync phase to setup and init the environment. No it happens that e.g. we need certain secrets and config maps indentically in both the preSync phase and in the sync phase. For this we currently define the same ressource twice, soley once with the preSync hook annotation. This clutters up the configuration and makes it hard to read an understand, especially when we need to pass them to a child chart.

Is it possible to register a ressource for multiple phases, so I don't need to define the ressource for each phase?

0

There are 0 best solutions below