This repository has been archived by the owner on Jul 15, 2024. It is now read-only.
Enhancement: ApplicationSet should support functions in template #447
Labels
enhancement
New feature or request
Feature request
ApplicationSet should be able to support functions in the template section of the manifest. This should be generator-agnostic, although for our use-case, we're blocked by the scmGenerator.
Something like this pseudo-code:
Use-case (as example): we want to be able to scan repos in our org that match a naming pattern for branches that match a naming pattern and deploy applications from those branches. The purpose is to support a fully automated gitops development process where developers can create specific branches in their repos and an instance of that app will be automatically deployed by ApplicationSet. This means that there will be several instances of the same app deployed in cluster so names need to be unique. After changes are merged and the branch is deleted, the application should then be deleted by ApplicationSet.
The lack of functions is blocking this in these ways:
{{ repository }}-{{ branch }}
) can exceed the character limit in k8s. Thereplace
function would enable shortening the name by any matched string./
in them which is an invalid character to k8s.The text was updated successfully, but these errors were encountered: