Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
bf2e154f
Commit
bf2e154f
authored
Jun 22, 2017
by
Matt Butcher
Committed by
GitHub
Jun 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2605 from sushilkm/issues/2598
Added omitempty to Requirements struct
parents
a41b851b
bfd74c35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
requirements.go
pkg/chartutil/requirements.go
+5
-5
resolver_test.go
pkg/resolver/resolver_test.go
+1
-1
No files found.
pkg/chartutil/requirements.go
View file @
bf2e154f
...
...
@@ -57,16 +57,16 @@ type Dependency struct {
// used to fetch the repository index.
Repository
string
`json:"repository"`
// A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )
Condition
string
`json:"condition"`
Condition
string
`json:"condition
,omitempty
"`
// Tags can be used to group charts for enabling/disabling together
Tags
[]
string
`json:"tags"`
Tags
[]
string
`json:"tags
,omitempty
"`
// Enabled bool determines if chart should be loaded
Enabled
bool
`json:"enabled"`
Enabled
bool
`json:"enabled
,omitempty
"`
// ImportValues holds the mapping of source values to parent key to be imported. Each item can be a
// string or pair of child/parent sublist items.
ImportValues
[]
interface
{}
`json:"import-values"`
ImportValues
[]
interface
{}
`json:"import-values
,omitempty
"`
// Alias usable alias to be used for the chart
Alias
string
`json:"alias"`
Alias
string
`json:"alias
,omitempty
"`
}
// ErrNoRequirementsFile to detect error condition
...
...
pkg/resolver/resolver_test.go
View file @
bf2e154f
...
...
@@ -146,7 +146,7 @@ func TestResolve(t *testing.T) {
}
func
TestHashReq
(
t
*
testing
.
T
)
{
expect
:=
"sha256:
45b06fcc4496c705bf3d634f8a2ff84e6a6f0bdcaf010614b8886572d1e52b99
"
expect
:=
"sha256:
e70e41f8922e19558a8bf62f591a8b70c8e4622e3c03e5415f09aba881f13885
"
req
:=
&
chartutil
.
Requirements
{
Dependencies
:
[]
*
chartutil
.
Dependency
{
{
Name
:
"alpine"
,
Version
:
"0.1.0"
,
Repository
:
"http://localhost:8879/charts"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment