Merge pull request #7136 from VilledeMontreal/fix/getValuesClusterCheck

fix(cli): IsReachable check for "get values"
This commit is contained in:
Matt Farina 2019-12-05 11:17:00 -05:00 committed by GitHub
commit 4a01b1603b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,10 @@ func NewGetValues(cfg *Configuration) *GetValues {
// Run executes 'helm get values' against the given release.
func (g *GetValues) Run(name string) (map[string]interface{}, error) {
if err := g.cfg.KubeClient.IsReachable(); err != nil {
return nil, err
}
rel, err := g.cfg.releaseContent(name, g.Version)
if err != nil {
return nil, err