-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ApplicationSet): Templating - Add possibility of using advanced templating across template field #11213
Comments
@crenshaw-dev can you take a look at this please, I will complete the PR with some examples to facilitate the review. |
It's also a workflow we want to permit
We want to prevent this ^ |
Any update on this? The two uses cases mentioned above would be incredibly valuable to us! Do you need any assistance? |
FYI - until this update is coming out
hope that it might be useful for someone 🙏 |
Any update this issue? |
Is there any update on adding self heal per cluster? |
templatePatch is the way to do this. https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Template/#template-patch |
Summary
Currently, with the ApplicationSet templating system, we cannot use the advanced function (although we have #10026) on the whole body of the
template
field as the rendering is scoped per field.Motivation
git
generator with thefiles.path
set we can delegate some specific configs to the maintainer of the path with*.yaml
or*.json
filesProposal
Introduce a new field in the
ApplicationSet
CRD of typestring
let's call itstringTemplate
that will contain the go template.A quick overview of the implementation:
Replace
method implemented inRender
struct (thanks to @speedfl for the suggestion here feat(appset): Add stringTemplate field to spec #11183 (comment))Application
insideRenderTemplateParams
tmpl
is not nil it will be merged with the previously MarshaledstringTemplate
The text was updated successfully, but these errors were encountered: