From 90192b4b2e5fa700e3a7d6c9a234cbe7d779f53b Mon Sep 17 00:00:00 2001 From: ngtuna Date: Tue, 12 Jul 2016 12:05:10 +0700 Subject: [PATCH] fix(helm): helm search should only display only those charts with a remove boolean that is set to false --- cmd/helm/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/helm/search.go b/cmd/helm/search.go index 287de252a..3c06aec47 100644 --- a/cmd/helm/search.go +++ b/cmd/helm/search.go @@ -60,7 +60,7 @@ func search(cmd *cobra.Command, args []string) error { func searchChartRefsForPattern(search string, chartRefs map[string]*repo.ChartRef) []string { matches := []string{} for k, c := range chartRefs { - if strings.Contains(c.Name, search) { + if strings.Contains(c.Name, search) && !c.Removed { matches = append(matches, k) continue }