2017 © Pedro Peláez
 

library kubernetes-client

image

sroze/kubernetes-client

  • Thursday, April 19, 2018
  • by sroze
  • Repository
  • 1 Watchers
  • 10 Stars
  • 2,858 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 30 Versions
  • 1 % Grown

The README.md

Kubernetes client

Build Status, (*1)

A library that provide a client for the Kubernetes API client., (*2)

Getting started

To create an anonymous client, you can:, (*3)

$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:, (*4)

$authenticatedHttpClient = new AuthenticationMiddleware(
    $httpClient,
    AuthenticationMiddleware::USERNAME_PASSWORD,
    'username:password'
);

Serializer

If you use JMS serializer, the serializer adapter already exists in the src/Serializer directory. There is also an handler for the RollingUpdateDeployment object type used by Kubernetes that uses integerOrString types., (*5)

Development

Install application dependencies:, (*6)

composer install

Tests

Tests are specifications written with PhpSpec., (*7)

./bin/phpspec run

The Versions