fix(helm): helm search should only display only those charts with a remove boolean that is set to false

pull/947/head
ngtuna 9 years ago
parent bfce033cc0
commit 90192b4b2e

@ -60,7 +60,7 @@ func search(cmd *cobra.Command, args []string) error {
func searchChartRefsForPattern(search string, chartRefs map[string]*repo.ChartRef) []string { func searchChartRefsForPattern(search string, chartRefs map[string]*repo.ChartRef) []string {
matches := []string{} matches := []string{}
for k, c := range chartRefs { for k, c := range chartRefs {
if strings.Contains(c.Name, search) { if strings.Contains(c.Name, search) && !c.Removed {
matches = append(matches, k) matches = append(matches, k)
continue continue
} }

Loading…
Cancel
Save