mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
Merge pull request #7136 from VilledeMontreal/fix/getValuesClusterCheck
fix(cli): IsReachable check for "get values"
This commit is contained in:
commit
4a01b1603b
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