summaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/helm/helm.go
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2021-10-26 22:39:48 +0000
committerGerrit Code Review <gerrit@onap.org>2021-10-26 22:39:48 +0000
commit82f9c8ed3bf558081a5b61a6162f260847f578b6 (patch)
tree95f520a8357aec29cdd48b375ef0b18b3d3bc1e0 /src/k8splugin/internal/helm/helm.go
parented96bca7fe415f1636d82c26af15d7474bdfe876 (diff)
parent3f0da55c0183e9da2f4658308dee1915338266aa (diff)
Merge "Fix resolution of values for Config API"
Diffstat (limited to 'src/k8splugin/internal/helm/helm.go')
-rw-r--r--src/k8splugin/internal/helm/helm.go6
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
}