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 25, 2024
1 parent d62f35e commit ae0dcf9
Show file tree
Hide file tree
Showing 17 changed files with 333 additions and 514 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 ae0dcf9

Please sign in to comment.