| 1 | package Kubernetes::REST::Server; | ||
| 2 | 39 | our $VERSION = '1.108'; | |
| 3 | # ABSTRACT: Kubernetes API server connection configuration | ||
| 4 | 39 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 39 | ▶ | use Types::Standard qw/Str Bool/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | |||
| 8 | 39 | has endpoint => (is => 'ro', isa => Str, required => 1); | |
| 9 | |||
| 10 | |||
| 11 | 39 | has ssl_verify_server => (is => 'ro', isa => Bool, default => 1); | |
| 12 | |||
| 13 | |||
| 14 | 39 | has ssl_cert_file => (is => 'ro'); | |
| 15 | |||
| 16 | |||
| 17 | 39 | has ssl_cert_pem => (is => 'ro'); | |
| 18 | |||
| 19 | |||
| 20 | 39 | has ssl_key_file => (is => 'ro'); | |
| 21 | |||
| 22 | |||
| 23 | 39 | has ssl_key_pem => (is => 'ro'); | |
| 24 | |||
| 25 | |||
| 26 | 39 | has ssl_ca_file => (is => 'ro'); | |
| 27 | |||
| 28 | |||
| 29 | 39 | has ssl_ca_pem => (is => 'ro'); | |
| 30 | |||
| 31 | |||
| 32 | 39 | 1; | |
| 33 | |||
| 34 | __END__ | ||
| 35 | |||
| 36 | =pod | ||
| 37 | |||
| 38 | =encoding UTF-8 | ||
| 39 | |||
| 40 | =head1 NAME | ||
| 41 | |||
| 42 | Kubernetes::REST::Server - Kubernetes API server connection configuration | ||
| 43 | |||
| 44 | =head1 VERSION | ||
| 45 | |||
| 46 | version 1.108 | ||
| 47 | |||
| 48 | =head1 SYNOPSIS | ||
| 49 | |||
| 50 | use Kubernetes::REST::Server; | ||
| 51 | |||
| 52 | my $server = Kubernetes::REST::Server->new( | ||
| 53 | endpoint => 'https://kubernetes.local:6443', | ||
| 54 | ssl_verify_server => 1, | ||
| 55 | ssl_ca_file => '/path/to/ca.crt', | ||
| 56 | ); | ||
| 57 | |||
| 58 | =head1 DESCRIPTION | ||
| 59 | |||
| 60 | Configuration object for Kubernetes API server connection details. | ||
| 61 | |||
| 62 | =head2 endpoint | ||
| 63 | |||
| 64 | Required. The Kubernetes API server endpoint URL (e.g., C<https://kubernetes.local:6443>). | ||
| 65 | |||
| 66 | =head2 ssl_verify_server | ||
| 67 | |||
| 68 | Boolean. Whether to verify the server's SSL certificate. Defaults to C<1> (true). | ||
| 69 | |||
| 70 | Set to C<0> for development clusters with self-signed certificates. | ||
| 71 | |||
| 72 | =head2 ssl_cert_file | ||
| 73 | |||
| 74 | Optional. Path to client certificate file for mTLS authentication. | ||
| 75 | |||
| 76 | =head2 ssl_cert_pem | ||
| 77 | |||
| 78 | Optional. PEM string of client certificate for mTLS authentication. | ||
| 79 | Takes precedence over C<ssl_cert_file>. | ||
| 80 | |||
| 81 | =head2 ssl_key_file | ||
| 82 | |||
| 83 | Optional. Path to client key file for mTLS authentication. | ||
| 84 | |||
| 85 | =head2 ssl_key_pem | ||
| 86 | |||
| 87 | Optional. PEM string of client key for mTLS authentication. | ||
| 88 | Takes precedence over C<ssl_key_file>. | ||
| 89 | |||
| 90 | =head2 ssl_ca_file | ||
| 91 | |||
| 92 | Optional. Path to CA certificate file for verifying the server certificate. | ||
| 93 | |||
| 94 | =head2 ssl_ca_pem | ||
| 95 | |||
| 96 | Optional. PEM string of CA certificate for server verification. | ||
| 97 | Takes precedence over C<ssl_ca_file>. | ||
| 98 | |||
| 99 | =head1 SEE ALSO | ||
| 100 | |||
| 101 | =over | ||
| 102 | |||
| 103 | =item * L<Kubernetes::REST> - Main API client | ||
| 104 | |||
| 105 | =item * L<Kubernetes::REST::Kubeconfig> - Load settings from kubeconfig | ||
| 106 | |||
| 107 | =back | ||
| 108 | |||
| 109 | =head1 SUPPORT | ||
| 110 | |||
| 111 | =head2 Issues | ||
| 112 | |||
| 113 | Please report bugs and feature requests on GitHub at | ||
| 114 | L<https://github.com/pplu/kubernetes-rest/issues>. | ||
| 115 | |||
| 116 | =head2 IRC | ||
| 117 | |||
| 118 | Join C<#kubernetes> on C<irc.perl.org> or message Getty directly. | ||
| 119 | |||
| 120 | =head1 CONTRIBUTING | ||
| 121 | |||
| 122 | Contributions are welcome! Please fork the repository and submit a pull request. | ||
| 123 | |||
| 124 | =head1 AUTHORS | ||
| 125 | |||
| 126 | =over 4 | ||
| 127 | |||
| 128 | =item * | ||
| 129 | |||
| 130 | Torsten Raudssus <getty@cpan.org> | ||
| 131 | |||
| 132 | =item * | ||
| 133 | |||
| 134 | Jose Luis Martinez Torres <jlmartin@cpan.org> | ||
| 135 | |||
| 136 | =back | ||
| 137 | |||
| 138 | =head1 COPYRIGHT AND LICENSE | ||
| 139 | |||
| 140 | This software is Copyright (c) 2019-2026 by Jose Luis Martinez Torres <jlmartin@cpan.org>. | ||
| 141 | |||
| 142 | This is free software, licensed under: | ||
| 143 | |||
| 144 | The Apache License, Version 2.0, January 2004 | ||
| 145 | |||
| 146 | =cut | ||