fix(install): fix issue where chart metadata is not being saved on `helm install`

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

@ -53,6 +53,9 @@ func newStatusCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
return err
}
// strip chart metadata from the output
rel.Chart = nil
outfmt, err := action.ParseOutputFormat(client.OutputFormat)
// We treat an invalid format type as the default
if err != nil && err != action.ErrInvalidFormatType {

@ -25,7 +25,7 @@ type Release struct {
// Info provides information about a release
Info *Info `json:"info,omitempty"`
// Chart is the chart that was released.
Chart *chart.Chart `json:"-"`
Chart *chart.Chart `json:"chart,omitempty"`
// Config is the set of extra Values added to the chart.
// These values override the default values inside of the chart.
Config map[string]interface{} `json:"config,omitempty"`

Loading…
Cancel
Save