|
|
@ -36,6 +36,7 @@ type Metadata struct {
|
|
|
|
Revision int `json:"revision" yaml:"revision"`
|
|
|
|
Revision int `json:"revision" yaml:"revision"`
|
|
|
|
Status string `json:"status" yaml:"status"`
|
|
|
|
Status string `json:"status" yaml:"status"`
|
|
|
|
DeployedAt string `json:"deployedAt" yaml:"deployedAt"`
|
|
|
|
DeployedAt string `json:"deployedAt" yaml:"deployedAt"`
|
|
|
|
|
|
|
|
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// NewGetMetadata creates a new GetMetadata object with the given configuration.
|
|
|
|
// NewGetMetadata creates a new GetMetadata object with the given configuration.
|
|
|
@ -65,5 +66,6 @@ func (g *GetMetadata) Run(name string) (*Metadata, error) {
|
|
|
|
Revision: rel.Version,
|
|
|
|
Revision: rel.Version,
|
|
|
|
Status: rel.Info.Status.String(),
|
|
|
|
Status: rel.Info.Status.String(),
|
|
|
|
DeployedAt: rel.Info.LastDeployed.Format(time.RFC3339),
|
|
|
|
DeployedAt: rel.Info.LastDeployed.Format(time.RFC3339),
|
|
|
|
|
|
|
|
Annotations: rel.Chart.Metadata.Annotations,
|
|
|
|
}, nil
|
|
|
|
}, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|