blib/lib/Kubernetes/REST/Policy.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::Policy;
2 our $VERSION = '1.109';
3 # ABSTRACT: Compatibility helper for deprecated v0 Policy calls
4 use Moo;
5 extends 'Kubernetes::REST::V0Group';
6 has '+group' => (default => sub { 'Policy' });
7  
8  
9 1;
10  
11 __END__
12  
13 =pod
14  
15 =encoding UTF-8
16  
17 =head1 NAME
18  
19 Kubernetes::REST::Policy - Compatibility helper for deprecated v0 Policy calls
20  
21 =head1 VERSION
22  
23 version 1.109
24  
25 =head1 SYNOPSIS
26  
27 # Old way (deprecated):
28 my $pdbs = $api->Policy->ListNamespacedPodDisruptionBudget(namespace => 'default');
29  
30 # New way:
31 my $pdbs = $api->list('PodDisruptionBudget', 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->Policy->ListNamespacedPodDisruptionBudget(...) >>; 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('PodDisruptionBudget', ...)
40 $api->create($pdb)
41  
42 See L<Kubernetes::REST/"UPGRADING FROM 0.02"> for migration guide.
43  
44 =head1 SEE ALSO
45  
46 =over
47  
48 =item * L<Kubernetes::REST> - Main module with v1 API
49  
50 =item * L<Kubernetes::REST::V0Group> - Base class for v0 compatibility layer
51  
52 =back
53  
54 =head1 SUPPORT
55  
56 =head2 Issues
57  
58 Please report bugs and feature requests on GitHub at
59 L<https://github.com/pplu/kubernetes-rest/issues>.
60  
61 =head2 IRC
62  
63 Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.
64  
65 =head1 CONTRIBUTING
66  
67 Contributions are welcome! Please fork the repository and submit a pull request.
68  
69 =head1 AUTHORS
70  
71 =over 4
72  
73 =item *
74  
75 Torsten Raudssus <getty@cpan.org>
76  
77 =item *
78  
79 Jose Luis Martinez Torres <jlmartin@cpan.org>
80  
81 =back
82  
83 =head1 COPYRIGHT AND LICENSE
84  
85 This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>.
86  
87 This is free software, licensed under:
88  
89 The Apache License, Version 2.0, January 2004
90  
91 =cut