@@ -44,8 +44,7 @@ public function test_http_authentication()
4444 $ this ->app ['config ' ]->set ('k8s.default ' , 'http ' );
4545 $ this ->app ['config ' ]->set ('k8s.connections.http ' , [
4646 'driver ' => 'http ' ,
47- 'host ' => env ('KUBE_HOST ' , '127.0.0.1 ' ),
48- 'port ' => env ('KUBE_PORT ' , 8080 ),
47+ 'host ' => env ('KUBE_HOST ' , 'http://127.0.0.1:8080 ' ),
4948 'ssl ' => [
5049 'certificate ' => '/path/to/.minikube/client.crt ' ,
5150 'key ' => '/path/to/.minikube/client.key ' ,
@@ -82,8 +81,7 @@ public function test_token_authentication()
8281 $ this ->app ['config ' ]->set ('k8s.default ' , 'token ' );
8382 $ this ->app ['config ' ]->set ('k8s.connections.token ' , [
8483 'driver ' => 'token ' ,
85- 'host ' => env ('KUBE_HOST ' , '127.0.0.1 ' ),
86- 'port ' => env ('KUBE_PORT ' , 8080 ),
84+ 'host ' => env ('KUBE_HOST ' , 'http://127.0.0.1:8080 ' ),
8785 'ssl ' => [
8886 'certificate ' => '/path/to/.minikube/client.crt ' ,
8987 'key ' => '/path/to/.minikube/client.key ' ,
@@ -115,6 +113,12 @@ public function test_token_authentication()
115113
116114 public function test_in_cluster_config ()
117115 {
116+ $ this ->app ['config ' ]->set ('k8s.default ' , 'cluster ' );
117+ $ this ->app ['config ' ]->set ('k8s.connections.cluster ' , [
118+ 'driver ' => 'cluster ' ,
119+ 'host ' => env ('KUBE_HOST ' , 'https://kubernetes.default.svc.cluster.local ' ),
120+ ]);
121+
118122 $ cluster = LaravelK8sFacade::connection ('cluster ' )->getCluster ();
119123
120124 [
0 commit comments