-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
ApplicationSet: Support for heterogeneous source types in application set with generators #9177
Comments
My use is as follows:
|
Do you want a single Application created by ApplicationSet to support multiple sources? Or do you just need the ApplicationSet to be able to create Applications, each with their own source type? In other words, are you looking for this:
Or this:
|
I have two different source repos (GitLab), one having a number of K8s manifests and the other having a number of helm charts (from package registry). I have to deploy all of these through one application-set.
**Here under template.spec.source, I want to get my k8s manifests first and then helm charts one by one. KEEPING IN MIND THAT WE WILL HAVE THE PARAMETER
|
Yes close to the second scenario, but the list under source section is to be generated by a generator, first I tried to use matrix generator for that, later on, I concluded to use a list generator by writing all my sources within it. |
@crenshaw-dev argocd applicationset supports multiple source (multiple repository/helm chart) and one destination to deploy? |
@reddymh I think what's being described here is multi-source Applications which is currently a work in progress. |
See #2789 (comment) |
I think the issue number for multi source applications is #677 |
@crenshaw-dev FWIW we also have need for your second use case: ApplicationSet encapsulating Applications of heterogeneous types: specifically source.helm and also sources that refer to "normal" Kubernetes manifests. After researching the relevant issues I am now proposing to my team that we workaround this limitation by defining Kustomize overlays as a wrapper around our helm charts, removing our need for homogeneity at the ApplicationSet level. Does anyone know of known issues with this approach? We would initially be doing Zero modification to the underlying charts. |
I think this will solve the need for heterogeneous types: #11567 |
Just realized there's a workaround: don't set Instead use the It's not perfect, but might unblock some use cases. |
Here is one more case when ApplicationSet needs multiple sources for valueFiles. |
@qtheya Yeah, this case is problematic for me also. I'm using applicationsets widely in my setup (mostly because of generators). It works great when I provide path to my own helm chart and values files - I have different values files for each environment, for example:
And It would be great to be able to do the same for external helm charts maintained by community. |
Is this in active development? Since Apps can have multiple sources it should be possible to have that on AppSets too right? |
i integrated helm+git plugin in order to solve my problem plus git+ssh in valuesFile, but unfortunate, require hard refresh for the content in values file change... |
"Multiple sources" are supported (i.e. the Heterogeneous source types are not yet supported. An app must use the same source type for all sources (i.e. either all Helm or all Kustomize). There's an open PR which would solve the problem, but in a hacky way. I'm going to get with the PR author and brainstorm a less hacky solution. But that'll be 2.9, I won't have time before 2.8. |
I'm using argocd-server: v2.6.7+5bcd846
but I do get the following error when applying it
If I define just one source it works fine. I do not know exactly what my problem is because I thougth wit ARgocd >2.6 this should work.
Any idea what my problem could be? |
I'm having the same issue as above on version 2.6.7. |
@wofr change the |
Mine is set to sources and i'm getting this error: AppSet:
|
@grahamprimm make sure your ApplicationSet CRD is up to date. |
That worked, thanks for the help! |
Summary
I used argoCD application-set to deploy my helm charts from one source and my k8s manifests from another source. But there is no support for multiple sources in application-set in
argoproj.io/v1alpha1
API version.Motivation
To deploy different application sourced from different points, like helm charts from some repo at bitnami and customize packages from my own private repo.
Proposal
Multiple sources must be support in applicationset so that we can deploy multiple application by getting deployment files from different sources.
The text was updated successfully, but these errors were encountered: