From 0fdfe0584437112e11fdfa6775625451442f6c91 Mon Sep 17 00:00:00 2001 From: Zuhair AlSader Date: Thu, 8 Dec 2022 01:45:40 -0500 Subject: [PATCH] docs: add docs for cli/values.Options Signed-off-by: Zuhair AlSader --- pkg/cli/values/options.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkg/cli/values/options.go b/pkg/cli/values/options.go index b895211d5..6f8b12600 100644 --- a/pkg/cli/values/options.go +++ b/pkg/cli/values/options.go @@ -29,16 +29,17 @@ import ( "helm.sh/helm/v3/pkg/strvals" ) +// Options captures the different ways to specify values type Options struct { - ValueFiles []string - StringValues []string - Values []string - FileValues []string - JSONValues []string + ValueFiles []string // -f/--values + StringValues []string // --set-string + Values []string // --set + FileValues []string // --set-file + JSONValues []string // --set-json } // MergeValues merges values from files specified via -f/--values and directly -// via --set, --set-string, or --set-file, marshaling them to YAML +// via --set-json, --set, --set-string, or --set-file, marshaling them to YAML func (opts *Options) MergeValues(p getter.Providers) (map[string]interface{}, error) { base := map[string]interface{}{}