diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-10-25 22:21:16 +0200 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2021-10-25 22:21:16 +0200 |
commit | 3f0da55c0183e9da2f4658308dee1915338266aa (patch) | |
tree | c2b9b4ad06786e51bf9262cb3d0dfacad7ee9853 /src/k8splugin/internal/helm/helm.go | |
parent | 6c28e5a7ca5a0688f5aefad010e0a3071ff6fe0b (diff) |
Fix resolution of values for Config API0.9.3
Issue-ID: MULTICLOUD-1414
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: Ibca5846ffe083bfc4d505c4c3c13efac2c6e2426
Diffstat (limited to 'src/k8splugin/internal/helm/helm.go')
-rw-r--r-- | src/k8splugin/internal/helm/helm.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/k8splugin/internal/helm/helm.go b/src/k8splugin/internal/helm/helm.go index b27c8aee..846366e4 100644 --- a/src/k8splugin/internal/helm/helm.go +++ b/src/k8splugin/internal/helm/helm.go @@ -72,9 +72,9 @@ func NewTemplateClient(k8sversion, namespace, releasename string) *TemplateClien } } -// Combines valueFiles and values into a single values stream. +// ProcessValues Combines valueFiles and values into a single values stream. // values takes precedence over valueFiles -func (h *TemplateClient) processValues(valueFiles []string, values []string) (map[string]interface{}, error) { +func (h *TemplateClient) ProcessValues(valueFiles []string, values []string) (map[string]interface{}, error) { settings := cli.New() providers := getter.All(settings) options := helmOptions.Options{ @@ -121,7 +121,7 @@ func (h *TemplateClient) GenerateKubernetesArtifacts(inputPath string, valueFile } // get combined values and create config - rawVals, err := h.processValues(valueFiles, values) + rawVals, err := h.ProcessValues(valueFiles, values) if err != nil { return retData, crdData, hookList, err } |