Update install.go

we should make sure all the resources are create.
Install after uninstall a release,  CR resources may be not created, because the info is a deleted infos.

Signed-off-by: wutongjie23hao <xiaolei.liang@qq.com>
pull/9605/head
Xiaolei.Liang 5 years ago committed by wutongjie23hao
parent a499b4b179
commit 38f3b36029

@ -355,6 +355,11 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release.
return i.failRelease(rel, err) return i.failRelease(rel, err)
} }
} }
for _, r := range resources {
if err := r.Get(); err != nil {
return i.failRelease(rel, err)
}
}
} }
if !i.DisableHooks { if !i.DisableHooks {

Loading…
Cancel
Save