-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Question: Helm repository with multible values files #938
Comments
Helllo @rpahli ! Not sure if I understood your proposal correctly. Are you suggesting to add applications auto-detection mechanism? So user could connect repository with multiple argo.yaml files instead of manually run This is already supported but in a slightly different way. You can create directory
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: helm-guestbook
spec:
destination:
namespace: default
server: https://localhost:6443
project: default
source:
helm:
valueFiles:
- values-production.yaml
path: helm-guestbook
repoURL: https://github.com/argoproj/argocd-example-apps This way you can manage argocd application in a gitops way. |
Hello @alexmt, that's what I'm looking for. But what I miss is the opportunity to use remote helm repositories with local values files. |
You might use URL. e.g.
Unfortunately, Helm does not support URLs which require authentication. |
What I mean is I want to use remote helm chart (tgz files) for example from https://hub.helm.sh and only the values files are in a git repositories. I know helm template does not support remote templates out of the box but this would be very helpful if argo-cd would support this. Maybe I can support to implement this feature if you think this is helpful. |
@rpahli - The way to accomplish this without building any extra features, is by having a helm chart in your private git repo, with a dependency to your desired chart in the upstream helm repository. The values.yaml in the private git repo is able to customize the helm parameters in the upstream chart. I added an example of how to do that here: Let us know if this satisfies your use case. |
Ok I'll check it if this works for us. Thanks |
Hi @alexmt , I do have a similar requirement as @rpahli and I believe that #1145 is not really addressing this fully. With the implementation in #1145, when using a Helm repository as a source, it is not possible to use the Would it make sense to still point to a Git repository in the source section and instead configure the Helm repository/chart inside the source:
# the Git repository in which the values files and other files required for Helm are stored
repoURL: https://github.com/xxx/yyy.git
targetRevision: master
path: my-nginx
helm:
# the chart repository/name/version
repoURL: https://kubernetes.github.io/ingress-nginx
chart: ingress-nginx
chartVersion: 4.0.3
# the following values files and other files are stored in the Git repository referenced above
valueFiles:
- values.yaml
fileParameters:
- name: certificate.content
path: certificate.crt I believe this would have the following important advantages:
Would it make sense to re-consider having such a functionality? |
Generally, Helm has the ability of providing external values.yaml. Looks like this is not possible if not adding the chart as dependency which cause the values.yaml to have the name of the dependency as root parent of the values. |
We are using helm for our deployments with multiple helm repositories. The directory structure looks like:
It would be great to have a detection mechanism for this. Something like a argo.yaml which we can placed inside the directory.
Example:
do you think this is useful?
The text was updated successfully, but these errors were encountered: