k8s / http-guzzle
Guzzle based HttpClient factory for k8s/client
1.0.0
2021-03-14 19:27 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^7.0
- k8s/core: ^1.3
- psr/http-client: ^1.0
Requires (Dev)
- ext-mbstring: *
- friendsofphp/php-cs-fixer: ^2.0
- mockery/mockery: ~1.3.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^8.0
README
This library provides a Guzzle based HttpClient factory for the k8s/client
library.
General Use with the K8s library / Configuration Options
- Install the library:
composer require k8s/http-guzzle
- Construct the main client for
k8s/client
through theK8sFactory
:
use K8s\Client\K8sFactory; # Load the client from the default KubeConfig $k8s = (new K8sFactory())->loadFromKubeConfig();
Your new client will have all the HttpClient options needed pre-populated when used.