From 38f3b36029d38654850bf6aa33a157437c649108 Mon Sep 17 00:00:00 2001 From: "Xiaolei.Liang" Date: Thu, 15 Apr 2021 11:33:00 +0800 Subject: [PATCH] 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 --- pkg/action/install.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/action/install.go b/pkg/action/install.go index 4de0b64e6..3b938ccb2 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -355,6 +355,11 @@ func (i *Install) Run(chrt *chart.Chart, vals map[string]interface{}) (*release. return i.failRelease(rel, err) } } + for _, r := range resources { + if err := r.Get(); err != nil { + return i.failRelease(rel, err) + } + } } if !i.DisableHooks {