- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for splitResource (0.09 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules.go
} } return false } func splitResource(resSub string) (res, sub string) { parts := strings.SplitN(resSub, "/", 2) if len(parts) == 2 { return parts[0], parts[1] } return parts[0], "" } func (r *Matcher) resource() bool { opRes, opSub := r.Attr.GetResource().Resource, r.Attr.GetSubresource() for _, res := range r.Rule.Resources { res, sub := splitResource(res) resMatch := res == "*" || res == opRes
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:38:55 UTC 2022 - 3.7K bytes - Viewed (0)