File Coverage

blib/lib/IO/K8s/Api/Flowcontrol/V1beta3/PolicyRulesWithSubjects.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package IO::K8s::Api::Flowcontrol::V1beta3::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             our $VERSION = '1.008';
4 1     1   1587 use IO::K8s::Resource;
  1         3  
  1         12  
5              
6             k8s nonResourceRules => ['Flowcontrol::V1beta3::NonResourcePolicyRule'];
7              
8              
9             k8s resourceRules => ['Flowcontrol::V1beta3::ResourcePolicyRule'];
10              
11              
12             k8s subjects => ['Flowcontrol::V1beta3::Subject'], 'required';
13              
14              
15             1;
16              
17             __END__