Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
satisfying ocd formatting
  • Loading branch information
luceos authored Jan 23, 2018
1 parent 8c17701 commit d52a0f1
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 d52a0f1

Please sign in to comment.