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
13cab2b329ba
Commit
13cab2b329ba
authored
2 years ago
by
steeve.chailloux
Browse files
Options
Downloads
Patches
Plain Diff
can now disable a chart
useful when using inherit
parent
d5c75e7ab94a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
runner/config.go
+6
-3
6 additions, 3 deletions
runner/config.go
runner/main.go
+3
-0
3 additions, 0 deletions
runner/main.go
with
9 additions
and
3 deletions
runner/config.go
+
6
−
3
View file @
13cab2b3
...
...
@@ -26,9 +26,10 @@
}
type
Chart
struct
{
Type
string
Path
string
Name
string
Type
string
Path
string
Name
string
Disabled
bool
}
type
Arg
struct
{
...
...
@@ -347,6 +348,7 @@
Type
string
Path
string
Name
string
Disabled
bool
ValuesFileNames
[]
string
}
...
...
@@ -386,6 +388,7 @@
Type
:
c
.
Type
,
Path
:
c
.
Path
,
Name
:
c
.
Name
,
Disabled
:
c
.
Disabled
,
ValuesFileNames
:
nil
,
}
}
...
...
This diff is collapsed.
Click to expand it.
runner/main.go
+
3
−
0
View file @
13cab2b3
...
...
@@ -197,6 +197,9 @@
// create ytt chart commands
cmds
:=
make
(
map
[
string
]
*
cmd
.
Cmd
)
for
name
,
chart
:=
range
r
.
config
.
Spec
.
Charts
{
if
chart
.
Disabled
{
continue
}
args
,
err
:=
chart
.
BuildArgs
(
name
,
r
.
config
.
Namespace
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"build: failed to build args %w"
,
err
)
...
...
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