Skip to content
Snippets Groups Projects
Commit 58c871eb authored by Steeven Herlant's avatar Steeven Herlant
Browse files

add Namespace keyword for helm chart

parent 8781d9c5
No related branches found
No related tags found
No related merge requests found
......@@ -22,10 +22,11 @@
}
type Chart struct {
Type string
Path string
Name string
Disabled bool
Type string
Path string
Name string
Namespace string
Disabled bool
}
type Arg struct {
......@@ -342,6 +343,7 @@
Type string
Path string
Name string
Namespace string
Disabled bool
ValuesFileNames []string
}
......@@ -353,5 +355,5 @@
// BuildArgs is in charge of producing the argument list to be provided
// to the cmd
func (c CmdChart) BuildArgs(n, namespace string) ([]string, error) {
func (c CmdChart) BuildArgs(n, ns string) ([]string, error) {
var name string
......@@ -357,7 +359,8 @@
var name string
var namespace string
var args []string
if c.Name != "" {
name = c.Name
} else {
name = n
}
......@@ -358,9 +361,14 @@
var args []string
if c.Name != "" {
name = c.Name
} else {
name = n
}
if c.Namespace != "" {
namespace = c.Namespace
} else {
namespace = ns
}
switch c.Type {
case HelmType:
// helm template name vendor/helm/mychart/ --namespace ns1 -f base.values.yaml -f ns.yaml -f ns.values.yaml
......@@ -382,6 +390,7 @@
Type: c.Type,
Path: c.Path,
Name: c.Name,
Namespace: c.Namespace,
Disabled: c.Disabled,
ValuesFileNames: nil,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment