-
Notifications
You must be signed in to change notification settings - Fork 163
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
option for helm-template
step to run helm dep build
command first
#3286
Comments
To summarize succinctly, you don't have the tarballs for the subcharts checked in -- which is fine and common. I think what you need is for It is probably actually the Sound about right? cc @hiddeco |
This we agree on.
This is one option indeed. But I do wonder if we can think of scenarios where people for some reason want to run |
Yes, that would fit nicely :) |
It seems within the realm of possibility, but I think we should just start with building it into |
helm dependency update
-equivalent without specifying a known subcharthelm-template
step to run helm dep build
command first
Some pointers for whomever may be implementing this:
|
Checklist
kargo version
, if applicable.Client Version: v1.1.2
Proposed Feature
The ability to do
helm dependency update
without specifying a specific subchart.Motivation
Our
Chart.yaml
file has the following structure:Currently I am trying to setup a single-freight warehouse that simply points at the Git repository hosting the above
Chart.yaml
file (andvalues.yaml
etc.).My PromotionTemplate steps are the following:
src
dir, clonedev
branch toout
directorydev
branchThe promotion will fail at the 3rd step because the dependency has not been fetched:
step execution failed: step 2 met error threshold of 1: failed to run step "helm-template": missing chart dependencies: found in Chart.yaml, but missing in charts/ directory: <subDependencyName>
A workaround that I can apply if I know my subDependency's name, repository and version is to add another step:
src
dir, clonedev
branch toout
directorydev
branchcharts
array)This does require me to know the subDependency when I build my PromotionTemplate - As my setup is meant as a very generic setup across the organization, that is probably not feasible.
I had hoped to do it using
helm-update-chart
without any entries in thecharts
array, but that fails with an error:step execution failed: step 2 met error threshold of 1: failed to run step "helm-update-chart": invalid helm-update-chart config: charts: Array must have at least 1 items
I could workaround the issue by having a dummy chart whose version I never change that I reference in
helm-update-chart
, but that would be a bit clunky.Suggested Implementation
Allow having an empty
charts
array in thehelm-update-chart
- Based on a brief glance at the code, that should still update dependencies.The text was updated successfully, but these errors were encountered: