From 8ba3f1db0905d4179c2edac96e44110145eb19ab Mon Sep 17 00:00:00 2001 From: Emanuel Bennici Date: Tue, 19 Nov 2019 18:28:53 +0100 Subject: [PATCH] Fix 'chart not found' Bug in outdated Command Signed-off-by: Emanuel Bennici --- cmd/helm/outdated.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/outdated.go b/cmd/helm/outdated.go index 5c8d43c7a..59edcbfcc 100644 --- a/cmd/helm/outdated.go +++ b/cmd/helm/outdated.go @@ -148,7 +148,7 @@ func initSearch(out io.Writer, o *searchRepoOptions) (*search.Index, error) { func searchChart(r []*search.Result, name string) (*search.Result, error) { // TODO: implement a better Searchalgorithm. for _, result := range r { - if strings.ToLower(result.Name) == strings.ToLower(name) { + if strings.Contains(strings.ToLower(result.Name), strings.ToLower(name)) { return result, nil } }