mirror of
https://github.com/helm/helm.git
synced 2026-04-22 14:47:41 -04:00
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>
This commit is contained in:
parent
750b870aed
commit
bf4cc97bbe
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue