Add ability to set target namespace for helm chart template

This commit is contained in:
Chris Hoffman
2021-04-22 18:31:26 -05:00
parent 06add3ab35
commit 53f78260a9
3 changed files with 132 additions and 21 deletions

View File

@@ -272,6 +272,9 @@ func (p *HelmChartInflationGeneratorPlugin) templateCommand() []string {
if p.ReleaseName != "" {
args = append(args, p.ReleaseName)
}
if p.Namespace != "" {
args = append(args, "--namespace", p.Namespace)
}
args = append(args, filepath.Join(p.absChartHome(), p.Name))
if p.ValuesFile != "" {
args = append(args, "--values", p.ValuesFile)