Skip to content

Commit

Permalink
docs: add docs for cli/values.Options
Browse files Browse the repository at this point in the history
Signed-off-by: Zuhair AlSader <zuhair@koor.tech>
  • Loading branch information
zalsader committed Dec 8, 2022
1 parent ced54b1 commit 0fdfe05
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pkg/cli/values/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}

Expand Down

0 comments on commit 0fdfe05

Please sign in to comment.