diff --git a/client.go b/client.go index 2c65d15..f0a9a3b 100644 --- a/client.go +++ b/client.go @@ -302,6 +302,9 @@ func (c *HelmClient) install(ctx context.Context, spec *ChartSpec, opts *Generic if opts.PostRenderer != nil { client.PostRenderer = opts.PostRenderer } + if opts.ChartPathOptions != nil { + client.ChartPathOptions = *(opts.ChartPathOptions) + } } helmChart, chartPath, err := c.GetChart(spec.ChartName, &client.ChartPathOptions) @@ -360,6 +363,9 @@ func (c *HelmClient) upgrade(ctx context.Context, spec *ChartSpec, opts *Generic if opts.PostRenderer != nil { client.PostRenderer = opts.PostRenderer } + if opts.ChartPathOptions != nil { + client.ChartPathOptions = *(opts.ChartPathOptions) + } } helmChart, chartPath, err := c.GetChart(spec.ChartName, &client.ChartPathOptions) diff --git a/types.go b/types.go index 6efb20e..cb59238 100644 --- a/types.go +++ b/types.go @@ -88,8 +88,9 @@ type HelmClient struct { } type GenericHelmOptions struct { - PostRenderer postrender.PostRenderer - RollBack RollBack + PostRenderer postrender.PostRenderer + RollBack RollBack + ChartPathOptions *action.ChartPathOptions } type HelmTemplateOptions struct {