mirror of https://github.com/helm/helm
When KubeClient.Build() returns an empty resource slice and the CRD already exists, accessing res[0].Name causes a panic. Add a length check before accessing res[0]. Fixes #31552 Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>pull/32179/head
parent
699cbb1f26
commit
9cbf94fb60
Loading…
Reference in new issue