Merge pull request from VilledeMontreal/fix/getValuesClusterCheck

fix(cli): IsReachable check for "get values"
pull/7170/head
Matt Farina 5 years ago committed by GitHub
commit 4a01b1603b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save