From abff903d0c4bba148edfa38d3c10f092039ea0eb Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Thu, 12 Sep 2024 21:59:40 +0900 Subject: [PATCH] Add comment withPreparedCharts (#1704) Signed-off-by: Yusuke Kuoka --- pkg/app/run.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/app/run.go b/pkg/app/run.go index 59e78949..e29fce2a 100644 --- a/pkg/app/run.go +++ b/pkg/app/run.go @@ -100,6 +100,11 @@ func (r *Run) withPreparedCharts(helmfileCommand string, opts state.ChartPrepare KubeContext: rel.KubeContext, } if chart := releaseToChart[key]; chart != rel.Chart { + // The chart has been downloaded and modified by Helmfile (and chartify under the hood). + // We let the later step use the modified version of the chart, located under the `chart` variable, + // instead of the original chart path. + // This way, the later step can use the modified chart without knowing + // if it has been modified or not. rel.ChartPath = chart } }