- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for genPolicyRuleWithSubjects (0.35 sec)
-
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/gen_test.go
// cross-rule exclusion. for i := 0; i < nRules && (i == 0 || !mayMatchClusterScope); i++ { rule, ruleMatchingRDigests, ruleMatchingNDigests, ruleSkippingRDigests, ruleSkippingNDigests := genPolicyRuleWithSubjects(t, rng, fmt.Sprintf("%s-%d", name, i+1), mayMatchClusterScope, ftr.matchesAllResourceRequests, ftr.matchesAllNonResourceRequests, i == everyResourceMatcher, i == everyNonResourceMatcher)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 24.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go
t.Run(fmt.Sprintf("trial%d:", i), func(t *testing.T) { r := rng.Float32() n := rng.Float32() policyRule, matchingRDigests, matchingNDigests, skippingRDigests, skippingNDigests := genPolicyRuleWithSubjects(t, rng, fmt.Sprintf("t%d", i), rng.Float32() < 0.2, r < 0.10, n < 0.10, r < 0.05, n < 0.05) if testDebugLogs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 13.3K bytes - Viewed (0)