mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 17:52:12 +00:00
Merge pull request #3292 from Shell32-Natsu/helm-extra-args
Add field extraArgs to helm generator
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
// Code generated by pluginator on HelmChartInflationGenerator; DO NOT EDIT.
|
// Code generated by pluginator on HelmChartInflationGenerator; DO NOT EDIT.
|
||||||
// pluginator {unknown 1970-01-01T00:00:00Z }
|
// pluginator {unknown 1970-01-01T00:00:00Z }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package builtins
|
package builtins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -125,6 +127,7 @@ func (p *HelmChartInflationGeneratorPlugin) getTemplateCommandArgs() []string {
|
|||||||
if p.Values != "" {
|
if p.Values != "" {
|
||||||
args = append(args, "--values", p.Values)
|
args = append(args, "--values", p.Values)
|
||||||
}
|
}
|
||||||
|
args = append(args, p.ExtraArgs...)
|
||||||
return args
|
return args
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -174,5 +177,5 @@ func (p *HelmChartInflationGeneratorPlugin) checkHelmVersion() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewHelmChartInflationGeneratorPlugin() resmap.GeneratorPlugin {
|
func NewHelmChartInflationGeneratorPlugin() resmap.GeneratorPlugin {
|
||||||
return &HelmChartInflationGeneratorPlugin{}
|
return &HelmChartInflationGeneratorPlugin{}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,11 @@ type HelmChartArgs struct {
|
|||||||
ChartRepoURL string `json:"chartRepoUrl,omitempty" yaml:"chartRepoUrl,omitempty"`
|
ChartRepoURL string `json:"chartRepoUrl,omitempty" yaml:"chartRepoUrl,omitempty"`
|
||||||
ChartHome string `json:"chartHome,omitempty" yaml:"chartHome,omitempty"`
|
ChartHome string `json:"chartHome,omitempty" yaml:"chartHome,omitempty"`
|
||||||
// Use chartRelease to keep compatible with old exec plugin
|
// Use chartRelease to keep compatible with old exec plugin
|
||||||
ChartRepoName string `json:"chartRelease,omitempty" yaml:"chartRelease,omitempty"`
|
ChartRepoName string `json:"chartRelease,omitempty" yaml:"chartRelease,omitempty"`
|
||||||
HelmBin string `json:"helmBin,omitempty" yaml:"helmBin,omitempty"`
|
HelmBin string `json:"helmBin,omitempty" yaml:"helmBin,omitempty"`
|
||||||
HelmHome string `json:"helmHome,omitempty" yaml:"helmHome,omitempty"`
|
HelmHome string `json:"helmHome,omitempty" yaml:"helmHome,omitempty"`
|
||||||
Values string `json:"values,omitempty" yaml:"values,omitempty"`
|
Values string `json:"values,omitempty" yaml:"values,omitempty"`
|
||||||
ReleaseName string `json:"releaseName,omitempty" yaml:"releaseName,omitempty"`
|
ReleaseName string `json:"releaseName,omitempty" yaml:"releaseName,omitempty"`
|
||||||
ReleaseNamespace string `json:"releaseNamespace,omitempty" yaml:"releaseNamespace,omitempty"`
|
ReleaseNamespace string `json:"releaseNamespace,omitempty" yaml:"releaseNamespace,omitempty"`
|
||||||
|
ExtraArgs []string `json:"extraArgs,omitempty" yaml:"extraArgs,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ func (p *HelmChartInflationGeneratorPlugin) getTemplateCommandArgs() []string {
|
|||||||
if p.Values != "" {
|
if p.Values != "" {
|
||||||
args = append(args, "--values", p.Values)
|
args = append(args, "--values", p.Values)
|
||||||
}
|
}
|
||||||
|
args = append(args, p.ExtraArgs...)
|
||||||
return args
|
return args
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user