A library that provide a client for the Kubernetes API client.
To create an anonymous client, you can:
$httpClient = new GuzzleHttpClient( new Client(), 'baseUrl', 'version' ); $client = new Client( new HttpAdapter($httpClient, new Serializer()) );
To had user authentication, you can decorate the http client:
$authenticatedHttpClient = new AuthenticationMiddleware( $httpClient, AuthenticationMiddleware::USERNAME_PASSWORD, 'username:password' );
If you use JMS serializer, the serializer adapter already exists in the
There is also an handler for the
RollingUpdateDeployment object type used by Kubernetes that uses
Install application dependencies:
Tests are specifications written with PhpSpec.