File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 93
93
94
94
'cluster ' => [
95
95
'driver ' => 'cluster ' ,
96
+ 'host ' => env ('KUBE_HOST ' , 'https://kubernetes.default.svc.cluster.local ' ),
96
97
],
97
98
98
99
],
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected function loadFromConfig(array $config)
53
53
case 'kubeconfig ' : $ this ->configureWithKubeConfigFile ($ config ); break ;
54
54
case 'http ' : $ this ->configureWithHttpAuth ($ config ); break ;
55
55
case 'token ' : $ this ->configureWithToken ($ config ); break ;
56
- case 'cluster ' : $ this ->configureInCluster (); break ;
56
+ case 'cluster ' : $ this ->configureInCluster ($ config ); break ;
57
57
default : break ;
58
58
}
59
59
}
@@ -135,10 +135,13 @@ protected function configureWithToken(array $config)
135
135
/**
136
136
* Load the In-Cluster configuration.
137
137
*
138
+ * @param array $config
138
139
* @return void
139
140
*/
140
- protected function configureInCluster ()
141
+ protected function configureInCluster (array $ config )
141
142
{
143
+ $ this ->cluster = new PhpK8sCluster ($ config ['host ' ] ?? 'https://kubernetes.default.svc.cluster.local ' );
144
+
142
145
$ this ->cluster ->inClusterConfiguration ();
143
146
}
144
147
You can’t perform that action at this time.
0 commit comments