From 09e1f8aeb14ad43fe44671ecbd7b9205ed0a00d7 Mon Sep 17 00:00:00 2001 From: Andrew Rudoi Date: Wed, 10 Jul 2019 14:38:07 -0700 Subject: [PATCH] chore: add ValueOptions constructor Signed-off-by: Andrew Rudoi --- pkg/action/install.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/action/install.go b/pkg/action/install.go index 22cd5e5af..290362ac1 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -693,6 +693,12 @@ func (v *ValueOptions) MergeValues(settings cli.EnvSettings) error { return nil } +func NewValueOptions(values map[string]interface{}) ValueOptions { + return ValueOptions{ + rawValues: values, + } +} + // mergeValues merges source and destination map, preferring values from the source map func mergeValues(dest, src map[string]interface{}) map[string]interface{} { out := make(map[string]interface{})