Skip to content

Commit

Permalink
Merge pull request #19 from luceos/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
maclof authored Jan 23, 2018
2 parents 8c17701 + d52a0f1 commit b88f952
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,18 +81,18 @@ $client = new Client([
```php
$client = new Client([
'master' => 'https://master.mycluster.com',
'ca_cert' => '/etc/kubernetes/ssl/ca.crt',
'client_cert' => '/etc/kubernetes/ssl/client.crt',
'client_key' => '/etc/kubernetes/ssl/client.key',
'ca_cert' => '/etc/kubernetes/ssl/ca.crt',
'client_cert' => '/etc/kubernetes/ssl/client.crt',
'client_key' => '/etc/kubernetes/ssl/client.key',
]);
```

### Using Basic Auth
```php
$client = new Client([
'master' => 'https://master.mycluster.com',
'username' => 'admin',
'password' => 'abc123',
'username' => 'admin',
'password' => 'abc123',
]);
```

Expand Down Expand Up @@ -164,8 +164,10 @@ You can also specify options when performing a deletion, eg. to perform [cascadi
```php
use Maclof\Kubernetes\Models\DeleteOptions;

$client->replicationControllers()->delete($replicationController,
new DeleteOptions(['propagationPolicy' => 'Background']));
$client->replicationControllers()->delete(
$replicationController,
new DeleteOptions(['propagationPolicy' => 'Background'])
);
```

See the API documentation for an explanation of the options:
Expand Down

0 comments on commit b88f952

Please sign in to comment.