fix(cli): IsReachable check for "get values"

The 'helm get values' has its own Run() method in the action package.
So, unlike the other 'get' variants, it needs to check for the
reachability of the cluster itself.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
pull/7136/head
Marc Khouzam 5 years ago
parent 750b870aed
commit bf4cc97bbe

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