Skip to content

Commit

Permalink
Added host in inClusterConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Nov 16, 2021
1 parent 373320b commit b1d5c31
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 b1d5c31

Please sign in to comment.