lib/IO/K8s/Api/Flowcontrol/V1/PolicyRulesWithSubjects.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« lib/IO/K8s/Api/Flowcontrol/V1/NonResourcePolicyRule.pm ↑ Summary lib/IO/K8s/Api/Flowcontrol/V1/PriorityLevelConfiguration.pm »
1 package IO::K8s::Api::Flowcontrol::V1::PolicyRulesWithSubjects;
2 # ABSTRACT: PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
3 2 our $VERSION = '1.112';
4 2 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 k8s nonResourceRules => ['Flowcontrol::V1::NonResourcePolicyRule'];
7  
8  
9 2 k8s resourceRules => ['Flowcontrol::V1::ResourcePolicyRule'];
10  
11  
12 2 k8s subjects => ['Flowcontrol::V1::Subject'], 'required';
13  
14  
15 2 1;
16  
17 __END__
« lib/IO/K8s/Api/Flowcontrol/V1/NonResourcePolicyRule.pm ↑ Summary lib/IO/K8s/Api/Flowcontrol/V1/PriorityLevelConfiguration.pm »