Skip to content

Commit

Permalink
refactor(helm): use helm package to load charts
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Oct 24, 2024
1 parent d62f35e commit bb5d50c
Show file tree
Hide file tree
Showing 17 changed files with 333 additions and 519 deletions.
8 changes: 4 additions & 4 deletions pkg/iac/scanners/helm/parser/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ type Option func(p *Parser)

func OptionWithValuesFile(paths ...string) Option {
return func(p *Parser) {
p.valuesFiles = paths
p.valueOpts.ValueFiles = paths
}
}

func OptionWithValues(values ...string) Option {
return func(p *Parser) {
p.values = values
p.valueOpts.Values = values
}
}

func OptionWithFileValues(values ...string) Option {
return func(p *Parser) {
p.fileValues = values
p.valueOpts.FileValues = values
}
}

func OptionWithStringValues(values ...string) Option {
return func(p *Parser) {
p.stringValues = values
p.valueOpts.StringValues = values
}
}

Expand Down
Loading

0 comments on commit bb5d50c

Please sign in to comment.