fix(chart): add JSON tags to chart object

Go capitalizes field names by default.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
pull/6866/head
Matthew Fisher 5 years ago
parent bf8318ea0b
commit 668f51bfdf
No known key found for this signature in database
GPG Key ID: 92AA783CBAAE8E3B

@ -27,18 +27,18 @@ const APIVersionV2 = "v2"
// optionally parameterizable templates, and zero or more charts (dependencies).
type Chart struct {
// Metadata is the contents of the Chartfile.
Metadata *Metadata
Metadata *Metadata `json:"metadata"`
// LocK is the contents of Chart.lock.
Lock *Lock
Lock *Lock `json:"lock"`
// Templates for this chart.
Templates []*File
Templates []*File `json:"templates"`
// Values are default config for this template.
Values map[string]interface{}
Values map[string]interface{} `json:"values"`
// Schema is an optional JSON schema for imposing structure on Values
Schema []byte
Schema []byte `json:"schema"`
// Files are miscellaneous files in a chart archive,
// e.g. README, LICENSE, etc.
Files []*File
Files []*File `json:"files"`
parent *Chart
dependencies []*Chart

@ -21,7 +21,7 @@ package chart
// base directory.
type File struct {
// Name is the path-like name of the template.
Name string
Name string `json:"name"`
// Data is the template as byte data.
Data []byte
Data []byte `json:"data"`
}

Loading…
Cancel
Save