blib/lib/Kubernetes/REST/RbacAuthorization.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Kubernetes::REST::RbacAuthorization;
2 our $VERSION = '1.108';
3 # ABSTRACT: Compatibility helper for deprecated v0 RBAC calls
4 use Moo;
5 extends 'Kubernetes::REST::V0Group';
6 has '+group' => (default => sub { 'RbacAuthorization' });
7  
8  
9 1;
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Kubernetes::REST::RbacAuthorization - Compatibility helper for deprecated v0 RBAC calls
20  
21 =head1 VERSION
22  
23 version 1.108
24  
25 =head1 SYNOPSIS
26  
27 # Old way (deprecated):
28 my $roles = $api->RbacAuthorization->ListNamespacedRole(namespace => 'default');
29  
30 # New way:
31 my $roles = $api->list('Role', namespace => 'default');
32  
33 =head1 DESCRIPTION
34  
35 This module keeps the deprecated v0 API usable. Kubernetes::REST 0.01/0.02 (by JLMARTIN) used method names like C<< $api->RbacAuthorization->ListNamespacedRole(...) >>; calls like that still reach the cluster from here, translated onto the v1 API.
36  
37 The new v1 API uses simple methods directly on the main L<Kubernetes::REST> object:
38  
39 $api->list('Role', ...)
40 $api->list('RoleBinding', ...)
41 $api->list('ClusterRole')
42 $api->create($role)
43  
44 See L<Kubernetes::REST/"UPGRADING FROM 0.02"> for migration guide.
45  
46 =head1 SEE ALSO
47  
48 =over
49  
50 =item * L<Kubernetes::REST> - Main module with v1 API
51  
52 =item * L<Kubernetes::REST::V0Group> - Base class for v0 compatibility layer
53  
54 =back
55  
56 =head1 SUPPORT
57  
58 =head2 Issues
59  
60 Please report bugs and feature requests on GitHub at
61 L<https://github.com/pplu/kubernetes-rest/issues>.
62  
63 =head2 IRC
64  
65 Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.
66  
67 =head1 CONTRIBUTING
68  
69 Contributions are welcome! Please fork the repository and submit a pull request.
70  
71 =head1 AUTHORS
72  
73 =over 4
74  
75 =item *
76  
77 Torsten Raudssus <getty@cpan.org>
78  
79 =item *
80  
81 Jose Luis Martinez Torres <jlmartin@cpan.org>
82  
83 =back
84  
85 =head1 COPYRIGHT AND LICENSE
86  
87 This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
88  
89 This is free software, licensed under:
90  
91 The Apache License, Version 2.0, January 2004
92  
93 =cut