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
a46a033d
Commit
a46a033d
authored
Aug 22, 2016
by
Matt Butcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(chart): support 'image:URL' in charts.
Closes #1034
parent
7dadacc1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
18 deletions
+31
-18
metadata.proto
_proto/hapi/chart/metadata.proto
+3
-0
charts.md
docs/charts.md
+1
-0
chartfile_test.go
pkg/chartutil/chartfile_test.go
+4
-0
chartfiletest.yaml
pkg/chartutil/testdata/chartfiletest.yaml
+1
-0
frobnitz-1.2.3.tgz
pkg/chartutil/testdata/frobnitz-1.2.3.tgz
+0
-0
Chart.yaml
pkg/chartutil/testdata/frobnitz/Chart.yaml
+1
-0
mariner-4.3.2.tgz
pkg/chartutil/testdata/frobnitz/charts/mariner-4.3.2.tgz
+0
-0
albatross-0.1.0.tgz
pkg/chartutil/testdata/mariner/charts/albatross-0.1.0.tgz
+0
-0
metadata.pb.go
pkg/proto/hapi/chart/metadata.pb.go
+21
-18
No files found.
_proto/hapi/chart/metadata.proto
View file @
a46a033d
...
...
@@ -58,4 +58,7 @@ message Metadata {
// The name of the template engine to use. Defaults to 'gotpl'.
string
engine
=
8
;
// The URL to an icon file.
string
icon
=
9
;
}
docs/charts.md
View file @
a46a033d
...
...
@@ -51,6 +51,7 @@ maintainers: # (optional)
-
name
:
The maintainer's name (required for each maintainer)
email
:
The maintainer's email (optional for each maintainer)
engine
:
gotpl
# The name of the template engine (optional, defaults to gotpl)
icon
:
A URL to an SVG or PNG image to be used as an icon (optional).
```
If you are familiar with the
`Chart.yaml`
file format for Helm Classic, you will
...
...
pkg/chartutil/chartfile_test.go
View file @
a46a033d
...
...
@@ -75,6 +75,10 @@ func verifyChartfile(t *testing.T, f *chart.Metadata) {
t
.
Error
(
"Unexpected home."
)
}
if
f
.
Icon
!=
"https://example.com/64x64.png"
{
t
.
Errorf
(
"Unexpected icon: %q"
,
f
.
Icon
)
}
if
len
(
f
.
Keywords
)
!=
3
{
t
.
Error
(
"Unexpected keywords"
)
}
...
...
pkg/chartutil/testdata/chartfiletest.yaml
View file @
a46a033d
...
...
@@ -13,3 +13,4 @@ maintainers:
sources
:
-
https://example.com/foo/bar
home
:
http://example.com
icon
:
https://example.com/64x64.png
pkg/chartutil/testdata/frobnitz-1.2.3.tgz
View file @
a46a033d
No preview for this file type
pkg/chartutil/testdata/frobnitz/Chart.yaml
View file @
a46a033d
...
...
@@ -13,3 +13,4 @@ maintainers:
sources
:
-
https://example.com/foo/bar
home
:
http://example.com
icon
:
https://example.com/64x64.png
pkg/chartutil/testdata/frobnitz/charts/mariner-4.3.2.tgz
View file @
a46a033d
No preview for this file type
pkg/chartutil/testdata/mariner/charts/albatross-0.1.0.tgz
View file @
a46a033d
No preview for this file type
pkg/proto/hapi/chart/metadata.pb.go
View file @
a46a033d
...
...
@@ -67,6 +67,8 @@ type Metadata struct {
Maintainers
[]
*
Maintainer
`protobuf:"bytes,7,rep,name=maintainers" json:"maintainers,omitempty"`
// The name of the template engine to use. Defaults to 'gotpl'.
Engine
string
`protobuf:"bytes,8,opt,name=engine" json:"engine,omitempty"`
// The URL to an icon file.
Icon
string
`protobuf:"bytes,9,opt,name=icon" json:"icon,omitempty"`
}
func
(
m
*
Metadata
)
Reset
()
{
*
m
=
Metadata
{}
}
...
...
@@ -88,22 +90,23 @@ func init() {
}
var
fileDescriptor2
=
[]
byte
{
// 266 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x09
,
0x6e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x15
,
0xe7
,
0x10
,
0x8a
,
0xee
,
0xcd
,
0x69
,
0x16
,
0xd3
,
0xca
,
0x8d
,
0xf3
,
0xbd
,
0x64
,
0xe5
,
0x3e
,
0x24
,
0x19
,
0x7a
,
0x79
,
0x9d
,
0x67
,
0x10
,
0xde
,
0x0c
,
0x34
,
0x85
,
0xe8
,
0xa9
,
0xbc
,
0x2b
,
0x57
,
0xcf
,
0xe5
,
0xec
,
0x08
,
0x13
,
0x08
,
0x6e
,
0x57
,
0x8f
,
0x0f
,
0xf7
,
0xb3
,
0xd1
,
0x75
,
0xf4
,
0x12
,
0xd0
,
0xba
,
0xd7
,
0x90
,
0xae
,
0xe0
,
0xe2
,
0x2f
,
0x00
,
0x00
,
0xff
,
0xff
,
0x72
,
0xdf
,
0x74
,
0xb5
,
0x9f
,
0x01
,
0x00
,
0x00
,
}
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