Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beaver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orus-io
beaver
Commits
58c871eb
Commit
58c871eb
authored
2 years ago
by
Steeven Herlant
Browse files
Options
Downloads
Patches
Plain Diff
add Namespace keyword for helm chart
parent
8781d9c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runner/config.go
+14
-5
14 additions, 5 deletions
runner/config.go
with
14 additions
and
5 deletions
runner/config.go
+
14
−
5
View file @
58c871eb
...
...
@@ -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
,
n
amespace
string
)
([]
string
,
error
)
{
func
(
c
CmdChart
)
BuildArgs
(
n
,
n
s
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
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment