« blib/lib/Kubernetes/Comb/CRD/CombResource.pm
↑ Summary
blib/lib/Kubernetes/Comb/CRD/CombUpstreamStatus.pm »
| 1 | package Kubernetes::Comb::CRD::CombStatus; | ||
| 2 | # ABSTRACT: Status of the Comb custom resource | ||
| 3 | 27 | our $VERSION = '0.001'; | |
| 4 | |||
| 5 | 27 | ▶ | use IO::K8s::Resource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 27 | ▶ | use Kubernetes::Comb::CRD::CombCondition; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 27 | ▶ | use Kubernetes::Comb::CRD::CombEndpoint; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 27 | ▶ | use Kubernetes::Comb::CRD::CombResource; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 27 | ▶ | use Kubernetes::Comb::CRD::CombUpstreamStatus; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | |||
| 13 | 27 | k8s phase => Str, { | |
| 14 | description => 'Running, Pending, Blocked, NeedsConfig, Disabled, Error,' | ||
| 15 | .' Stopped or NotDeployed' | ||
| 16 | }; | ||
| 17 | |||
| 18 | |||
| 19 | 27 | k8s conditions => ['+Kubernetes::Comb::CRD::CombCondition']; | |
| 20 | |||
| 21 | |||
| 22 | 27 | k8s managedResources => ['+Kubernetes::Comb::CRD::CombResource']; | |
| 23 | |||
| 24 | |||
| 25 | 27 | k8s endpoints => ['+Kubernetes::Comb::CRD::CombEndpoint']; | |
| 26 | |||
| 27 | |||
| 28 | 27 | k8s upstream => '+Kubernetes::Comb::CRD::CombUpstreamStatus'; | |
| 29 | |||
| 30 | |||
| 31 | 27 | k8s observedGeneration => Int; | |
| 32 | |||
| 33 | |||
| 34 | 27 | 1; | |
| 35 | |||
| 36 | __END__ | ||
| 37 | |||
| 38 | =pod | ||
| 39 | |||
| 40 | =encoding UTF-8 | ||
| 41 | |||
| 42 | =head1 NAME | ||
| 43 | |||
| 44 | Kubernetes::Comb::CRD::CombStatus - Status of the Comb custom resource | ||
| 45 | |||
| 46 | =head1 VERSION | ||
| 47 | |||
| 48 | version 0.001 | ||
| 49 | |||
| 50 | =head1 DESCRIPTION | ||
| 51 | |||
| 52 | The C<status> of a L<Kubernetes::Comb::CRD::Comb>, written by the Comb itself | ||
| 53 | through the status subresource. | ||
| 54 | |||
| 55 | =head2 phase | ||
| 56 | |||
| 57 | One of C<Running>, C<Pending>, C<Blocked>, C<NeedsConfig>, C<Disabled>, | ||
| 58 | C<Error>, C<Stopped>, C<NotDeployed>. Not enforced as an enum, so a status | ||
| 59 | written by a newer version still inflates. | ||
| 60 | |||
| 61 | =head2 conditions | ||
| 62 | |||
| 63 | ArrayRef of L<Kubernetes::Comb::CRD::CombCondition>. | ||
| 64 | |||
| 65 | =head2 managedResources | ||
| 66 | |||
| 67 | ArrayRef of L<Kubernetes::Comb::CRD::CombResource>: every object the Comb | ||
| 68 | deployed, the base for pruning. | ||
| 69 | |||
| 70 | =head2 endpoints | ||
| 71 | |||
| 72 | ArrayRef of L<Kubernetes::Comb::CRD::CombEndpoint>, already resolved. | ||
| 73 | |||
| 74 | =head2 upstream | ||
| 75 | |||
| 76 | L<Kubernetes::Comb::CRD::CombUpstreamStatus>, only while an upstream is | ||
| 77 | active -- or its bridge still stands: steps that change nothing carry it | ||
| 78 | forward, see L<Kubernetes::Comb/reconcile>. | ||
| 79 | |||
| 80 | =head2 observedGeneration | ||
| 81 | |||
| 82 | C<metadata.generation> of the spec this status describes. | ||
| 83 | |||
| 84 | =head1 SEE ALSO | ||
| 85 | |||
| 86 | =over | ||
| 87 | |||
| 88 | =item * L<Kubernetes::Comb::CRD::Comb> | ||
| 89 | |||
| 90 | =back | ||
| 91 | |||
| 92 | =head1 SUPPORT | ||
| 93 | |||
| 94 | =head2 Issues | ||
| 95 | |||
| 96 | Please report bugs and feature requests on GitHub at | ||
| 97 | L<https://github.com/Getty/p5-kubernetes-comb/issues>. | ||
| 98 | |||
| 99 | =head2 IRC | ||
| 100 | |||
| 101 | Join C<#kubernetes> on C<irc.perl.org> or message Getty directly. | ||
| 102 | |||
| 103 | =head1 CONTRIBUTING | ||
| 104 | |||
| 105 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 106 | |||
| 107 | =head1 AUTHOR | ||
| 108 | |||
| 109 | Torsten Raudssus <getty@cpan.org> | ||
| 110 | |||
| 111 | =head1 COPYRIGHT AND LICENSE | ||
| 112 | |||
| 113 | This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>. | ||
| 114 | |||
| 115 | This is free software; you can redistribute it and/or modify it under | ||
| 116 | the same terms as the Perl 5 programming language system itself. | ||
| 117 | |||
| 118 | =cut | ||