- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewEquivalentResourceRegistryWithIdentity (0.5 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go
a := &Matcher{namespaceMatcher: &namespace.Matcher{}, objectMatcher: &object.Matcher{}} allScopes := v1.AllScopes exactMatch := v1.Exact equivalentMatch := v1.Equivalent mapper := runtime.NewEquivalentResourceRegistryWithIdentity(func(resource schema.GroupResource) string { if resource.Resource == "deployments" { // co-locate deployments in all API groups return "/deployments" } return "" })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 38.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/config.go
if c.EquivalentResourceRegistry == nil { if c.RESTOptionsGetter == nil { c.EquivalentResourceRegistry = runtime.NewEquivalentResourceRegistry() } else { c.EquivalentResourceRegistry = runtime.NewEquivalentResourceRegistryWithIdentity(func(groupResource schema.GroupResource) string { // use the storage prefix as the key if possible if opts, err := c.RESTOptionsGetter.GetRESTOptions(groupResource); err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 47.7K bytes - Viewed (0)