blib/lib/Kubernetes/Comb/CRD/CombEndpoint.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Kubernetes/Comb/CRD/CombCondition.pm ↑ Summary blib/lib/Kubernetes/Comb/CRD/CombResource.pm »
1 package Kubernetes::Comb::CRD::CombEndpoint;
2 # ABSTRACT: One resolved endpoint in the status of a Comb custom resource
3 28 our $VERSION = '0.001';
4  
5 28 ▶use IO::K8s::Resource;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7  
8 28 k8s name => Str, { required => 1 };
9  
10  
11 28 k8s protocol => Str;
12  
13  
14 28 k8s port => Int, { required => 1 };
15  
16  
17 28 k8s cluster => Str;
18  
19  
20 28 k8s external => Str;
21  
22  
23 28 1;
24  
25 __END__
26  
27 =pod
28  
29 =encoding UTF-8
30  
31 =head1 NAME
32  
33 Kubernetes::Comb::CRD::CombEndpoint - One resolved endpoint in the status of a Comb custom resource
34  
35 =head1 VERSION
36  
37 version 0.001
38  
39 =head1 DESCRIPTION
40  
41 An entry of C<status.endpoints> of a L<Kubernetes::Comb::CRD::Comb>. A Comb
42 publishes its endpoints already resolved -- redirected when an upstream is
43 active -- so a Comb borrowing from this one needs no knowledge of the layers
44 behind it. In Perl code the value object is L<Kubernetes::Comb::Endpoint>;
45 L<Kubernetes::Comb::Endpoint/to_crd> and L<Kubernetes::Comb::Endpoint/from_crd>
46 convert.
47  
48 =head2 name
49  
50 Required. Endpoint name as the Comb class declares it, e.g. C<client>.
51  
52 =head2 protocol
53  
54 C<tcp>, C<udp>, ...
55  
56 =head2 port
57  
58 Required. The port the endpoint is offered on.
59  
60 =head2 cluster
61  
62 Address inside the cluster, C<host:port>, e.g. C<nats.platform.svc:4222>.
63  
64 =head2 external
65  
66 Address from outside the cluster, C<host:port>.
67  
68 =head1 SEE ALSO
69  
70 =over
71  
72 =item * L<Kubernetes::Comb::Endpoint>
73  
74 =item * L<Kubernetes::Comb::CRD::CombStatus>
75  
76 =back
77  
78 =head1 SUPPORT
79  
80 =head2 Issues
81  
82 Please report bugs and feature requests on GitHub at
83 L<https://github.com/Getty/p5-kubernetes-comb/issues>.
84  
85 =head2 IRC
86  
87 Join C<#kubernetes> on C<irc.perl.org> or message Getty directly.
88  
89 =head1 CONTRIBUTING
90  
91 Contributions are welcome! Please fork the repository and submit a pull request.
92  
93 =head1 AUTHOR
94  
95 Torsten Raudssus <getty@cpan.org>
96  
97 =head1 COPYRIGHT AND LICENSE
98  
99 This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>.
100  
101 This is free software; you can redistribute it and/or modify it under
102 the same terms as the Perl 5 programming language system itself.
103  
104 =cut
« blib/lib/Kubernetes/Comb/CRD/CombCondition.pm ↑ Summary blib/lib/Kubernetes/Comb/CRD/CombResource.pm »