- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MatchesGlobs (0.12 sec)
-
tools/bug-report/pkg/filter/filter.go
if !match.MatchesGlobs(namespace, sp.Namespaces) { return false } if !match.MatchesGlobs(deployment, sp.Deployments) { return false } if !match.MatchesGlobs(pod, sp.Pods) && len(sp.Pods) != 0 { return false } if !match.MatchesGlobs(container, sp.Containers) { return false } if !match.MatchesGlobs(container, sp.Containers) { return false }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Oct 13 23:42:29 UTC 2022 - 3.9K bytes - Viewed (0) -
tools/bug-report/pkg/util/match/match.go
return false } for ks, vs := range selection { vc, ok := cluster[ks] if !ok { return false } if !MatchesGlob(vc, vs) { return false } } return true } func MatchesGlobs(matchString string, patterns []string) bool { if len(patterns) == 0 { return true } if len(patterns) == 1 { p := strings.TrimSpace(patterns[0]) if p == "" || p == "*" { return true } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.6K bytes - Viewed (0) -
tools/bug-report/pkg/processlog/processlog.go
out := &Stats{} for _, l := range strings.Split(logStr, "\n") { _, level, text, valid := parseLog(l) if !valid { continue } switch level { case levelFatal, levelError, levelWarn: if match.MatchesGlobs(text, config.IgnoredErrors) { continue } switch level { case levelFatal: out.numFatals++ case levelError: out.numErrors++ case levelWarn: out.numWarnings++ }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 19 21:44:33 UTC 2023 - 4.4K bytes - Viewed (0)