Skip to content

Commit 4a7807a

Browse files
milkshake308Mrflatt
authored andcommitted
feat: add devel options for helmcharts
1 parent 29a924f commit 4a7807a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

api/internal/builtins/HelmChartInflationGenerator.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/types/helmchartargs.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ type HelmChart struct {
9999

100100
// debug enables debug output from the Helm chart inflator generator.
101101
Debug bool `json:"debug,omitempty" yaml:"debug,omitempty"`
102+
103+
// allow for devel release to be used.
104+
Devel bool `json:"devel,omitempty" yaml:"devel,omitempty"`
102105
}
103106

104107
// HelmChartArgs contains arguments to helm.
@@ -194,5 +197,8 @@ func (h HelmChart) AsHelmArgs(absChartHome string) []string {
194197
if h.Debug {
195198
args = append(args, "--debug")
196199
}
200+
if h.Devel {
201+
args = append(args, "--devel")
202+
}
197203
return args
198204
}

plugin/builtin/helmchartinflationgenerator/HelmChartInflationGenerator.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ func (p *plugin) pullCommand() []string {
343343
if p.Version != "" {
344344
args = append(args, "--version", p.Version)
345345
}
346+
if p.Devel {
347+
args = append(args, "--devel")
348+
}
346349
return args
347350
}
348351

0 commit comments

Comments
 (0)