-
Notifications
You must be signed in to change notification settings - Fork 565
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
Proposal: add option for remote values files located in other repos #469
Comments
@aweis89 Hey! Yes, probably this makes sense. How will you implement it? For more context, @AssafKatz3's #29 would help understanding why helmfile didn't add the feature in its early days. You should also see requests for secret caching(#444) and vault integration(#392). I was going to address those in a tool external to helmfile. However it turned out now to work well with a lot of "sub-helmfiles"( |
Remote helmfiles has been implemented in #648. Adding values files support based on that work should be easy enough. It would work as @aweis89 has initially proposed. One difference would be that helmfile uses The another would be that helmfile uses, in the git provider for example, queries like So In case your |
@mumoshu I'm trying to use this feature with SSH and I'm failing to do so. Example path you've said
Using:
actually DOES something, but it omits the |
@kamsz Yeah I observed it as well and it seemed like issues in go-getter that helmfile uses under the hood. That said, there's no easy fix. What worked for me is use So you should have helmfiles like:
And place
|
Note that the above workaround is needed only for private git repos. Public git repos works without the workaround. |
@mumoshu If Terraform uses go-getter under the hood, it's pretty weird, because it works fine with TF. |
@kamsz Interesting! Not sure what makes the difference. Does your git url works when it is fed to |
A few examples of mine:
|
So your last example should work:
Perhaps helmfile is dropping the |
@mumoshu Yeah, it's dropping |
@kamsz True! Sry I was so dumb! |
The remote helmfile feature introduced by #648 was unable to be sourced from private git repositories due to URL parsing issue in helmfile. This fixes that. Ref #469 (comment)
The remote helmfile feature introduced by #648 was unable to be sourced from private git repositories due to URL parsing issue in helmfile. This fixes that. Ref #469 (comment)
@mumoshu Thank you! Appreciate that:) |
The remote helmfile feature introduced by #648 was unable to be sourced from private git repositories due to URL parsing issue in helmfile. This fixes that. Ref #469 (comment)
@kamsz Glad to help, and thanks again for reporting! FYI, I've just released v0.79.2 which includes the fix 😃 |
@mumoshu If I may suggest one more thing - an argument to force cache refresh. After remote helmfiles got downloaded, they're not downloaded again until cache is removed. |
@mumoshu One more question. Is the following syntax supported?
From what I can see values are not being merged. |
@kamsz Unfortunately no, but it worth a feature request. I thought mentioned that config syntax in somewhere else, willing to add it to helmfile, but seems like never got to create a feature request myself! |
Oh wait... I lost my memory |
Sry it's actually implemented in #640 :) Are you sure you're explicitly referencing a key existing in |
@mumoshu has now made this possible with https://github.com/mumoshu/terraform-provider-helmfile Use terraform remote state for “remote values” ;-) |
Can someone teach me how to go about it? |
hg5twl5rpv47rjzo |
1 similar comment
hg5twl5rpv47rjzo |
The workdaround I am using for now, to load remote values to use with a remote helmfile module.
The first helmfile module is a dummy one, no release in there, just config. But helmfile bin will still clone it locally. |
Is there a way for the environment values file being loaded from a remote location? The use case is that we put our helmfiles in the project repo, and there are some global environment config values we want to load into the helmfile. something like:
|
I took a first stab at implementing what I described above. Here's the PR: #1296 Please let me know if this is alright. Thanks! |
I have additional suggestion for improving . The ability to specify the chartmuseum as the source of custom values files. As mentioned before, we are using the chartmuseum as the "source of truth" for each environment (dev, testing, staging, production) and not git. We have found it more useful and convenient . On other hand the deployment could be executed from the project repo by ci/cd but also by the centrak GitOps mechanism (let's call it so) . |
@kevinjqiu It looks like this only works with environment values. Any chance your merged PR 1296 also included support for remote values files for releases? |
Whoops
Whoops ... just realized I was not looking at most recent issues/project. Looks like support was recently added: helmfile/helmfile#47 |
Just to contribute to this issue, I managed to fix it using this format bellow. As mentioned this #719 fixed the problem
|
Is this supported yet or not? (using remote values files) |
Hey,
I think it would be awesome to have the option of pulling values files over http/s and git ssh.
Something like:
Motivation:
We're using helmfile for our GitOps deploy workflow. We have repository of basically just helmfiles that specify the state for each env (like the docker image value and helm chart version). A change to said repo triggers a deploy to the corresponding environment where our ci basically just has to run
helmfile sync
in the correct directory. However we like to store values that are coupled with the application in the application repository which is separate from the helmfile repository.If the above makes sense, we'd be happy to make a pull request for this.
Thanks
The text was updated successfully, but these errors were encountered: