- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for matchesFlowSchema (0.22 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go
if testDebugLogs { t.Logf("%s.digests[%v] = %#+v", ftr.fs.Name, expectMatch, digests1) } for _, digests2 := range digests1 { for _, digest := range digests2 { actualMatch := matchesFlowSchema(digest, ftr.fs) if expectMatch != actualMatch { t.Errorf("Fail for %s vs %#+v: expectedMatch=%v, actualMatch=%v", fcfmt.Fmt(ftr.fs), digest, expectMatch, actualMatch) } } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 13.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/rule.go
"k8s.io/apiserver/pkg/authentication/user" "k8s.io/apiserver/pkg/endpoints/request" ) // Tests whether a given request and FlowSchema match. Nobody mutates // either input. func matchesFlowSchema(digest RequestDigest, flowSchema *flowcontrol.FlowSchema) bool { for _, policyRule := range flowSchema.Spec.Rules { if matchesPolicyRule(digest, &policyRule) { return true } } return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go
klog.V(7).Infof("startRequest(%#+v)", rd) cfgCtlr.lock.RLock() defer cfgCtlr.lock.RUnlock() var selectedFlowSchema, catchAllFlowSchema *flowcontrol.FlowSchema for _, fs := range cfgCtlr.flowSchemas { if matchesFlowSchema(rd, fs) { selectedFlowSchema = fs break } if fs.Name == flowcontrol.FlowSchemaNameCatchAll { catchAllFlowSchema = fs } } if selectedFlowSchema == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 48.8K bytes - Viewed (0)