Skip to content

Commit

Permalink
Merge pull request #22 from renoki-co/feature/host-in-cluster
Browse files Browse the repository at this point in the history
[3.x] Added host in `inClusterConfiguration`
  • Loading branch information
rennokki authored Nov 16, 2021
2 parents 373320b + b1d5c31 commit 963510e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"renoki-co/php-k8s": "^3.1"
"renoki-co/php-k8s": "^3.1.8"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 3 additions & 1 deletion src/KubernetesCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ protected function configureWithToken(array $config)
*/
protected function configureInCluster(array $config)
{
$this->cluster = PhpK8sCluster::inClusterConfiguration();
$this->cluster = PhpK8sCluster::inClusterConfiguration(
$config['host'] ?? 'https://kubernetes.default.svc'
);
}

/**
Expand Down

0 comments on commit 963510e

Please sign in to comment.