|
|
@ -59,8 +59,8 @@ func newReleaseTestCmd(cfg *action.Configuration, out io.Writer) *cobra.Command
|
|
|
|
client.Namespace = settings.Namespace()
|
|
|
|
client.Namespace = settings.Namespace()
|
|
|
|
notName := regexp.MustCompile(`^!\s?name=`)
|
|
|
|
notName := regexp.MustCompile(`^!\s?name=`)
|
|
|
|
for _, f := range filter {
|
|
|
|
for _, f := range filter {
|
|
|
|
if strings.HasPrefix(f, "name=") {
|
|
|
|
if after, ok := strings.CutPrefix(f, "name="); ok {
|
|
|
|
client.Filters[action.IncludeNameFilter] = append(client.Filters[action.IncludeNameFilter], strings.TrimPrefix(f, "name="))
|
|
|
|
client.Filters[action.IncludeNameFilter] = append(client.Filters[action.IncludeNameFilter], after)
|
|
|
|
} else if notName.MatchString(f) {
|
|
|
|
} else if notName.MatchString(f) {
|
|
|
|
client.Filters[action.ExcludeNameFilter] = append(client.Filters[action.ExcludeNameFilter], notName.ReplaceAllLiteralString(f, ""))
|
|
|
|
client.Filters[action.ExcludeNameFilter] = append(client.Filters[action.ExcludeNameFilter], notName.ReplaceAllLiteralString(f, ""))
|
|
|
|
}
|
|
|
|
}
|
|
|
|