| 1 | package Kubernetes::Comb::CRD::CombCondition; | ||
| 2 | # ABSTRACT: One condition in the status of a 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 | |||
| 8 | 27 | k8s type => Str, { required => 1 }; | |
| 9 | |||
| 10 | |||
| 11 | 27 | k8s status => Str, { required => 1, enum => [qw( True False Unknown )] }; | |
| 12 | |||
| 13 | |||
| 14 | 27 | k8s reason => Str; | |
| 15 | |||
| 16 | |||
| 17 | 27 | k8s message => Str; | |
| 18 | |||
| 19 | |||
| 20 | 27 | k8s lastTransitionTime => Time; | |
| 21 | |||
| 22 | |||
| 23 | 27 | 1; | |
| 24 | |||
| 25 | __END__ | ||
| 26 | |||
| 27 | =pod | ||
| 28 | |||
| 29 | =encoding UTF-8 | ||
| 30 | |||
| 31 | =head1 NAME | ||
| 32 | |||
| 33 | Kubernetes::Comb::CRD::CombCondition - One condition 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.conditions> of a L<Kubernetes::Comb::CRD::Comb>, shaped | ||
| 42 | like the conditions of the built-in Kinds, so the condition helpers of | ||
| 43 | L<IO::K8s::Role::APIObject> (C<get_condition>, C<is_condition_true>, ...) work | ||
| 44 | on a Comb custom resource as well. | ||
| 45 | |||
| 46 | =head2 type | ||
| 47 | |||
| 48 | Required. The condition type, e.g. C<Ready>. | ||
| 49 | |||
| 50 | =head2 status | ||
| 51 | |||
| 52 | Required. C<True>, C<False> or C<Unknown>. | ||
| 53 | |||
| 54 | =head2 reason | ||
| 55 | |||
| 56 | Machine-readable CamelCase reason for the last transition. | ||
| 57 | |||
| 58 | =head2 message | ||
| 59 | |||
| 60 | Human-readable detail. | ||
| 61 | |||
| 62 | =head2 lastTransitionTime | ||
| 63 | |||
| 64 | RFC 3339 timestamp of the last change of L</status>. | ||
| 65 | |||
| 66 | =head1 SEE ALSO | ||
| 67 | |||
| 68 | =over | ||
| 69 | |||
| 70 | =item * L<Kubernetes::Comb::CRD::CombStatus> | ||
| 71 | |||
| 72 | =back | ||
| 73 | |||
| 74 | =head1 SUPPORT | ||
| 75 | |||
| 76 | =head2 Issues | ||
| 77 | |||
| 78 | Please report bugs and feature requests on GitHub at | ||
| 79 | L<https://github.com/Getty/p5-kubernetes-comb/issues>. | ||
| 80 | |||
| 81 | =head2 IRC | ||
| 82 | |||
| 83 | Join C<#kubernetes> on C<irc.perl.org> or message Getty directly. | ||
| 84 | |||
| 85 | =head1 CONTRIBUTING | ||
| 86 | |||
| 87 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 88 | |||
| 89 | =head1 AUTHOR | ||
| 90 | |||
| 91 | Torsten Raudssus <getty@cpan.org> | ||
| 92 | |||
| 93 | =head1 COPYRIGHT AND LICENSE | ||
| 94 | |||
| 95 | This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>. | ||
| 96 | |||
| 97 | This is free software; you can redistribute it and/or modify it under | ||
| 98 | the same terms as the Perl 5 programming language system itself. | ||
| 99 | |||
| 100 | =cut | ||