We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9147d9a commit 3793850Copy full SHA for 3793850
src/LaravelK8sServiceProvider.php
@@ -21,11 +21,12 @@ public function boot()
21
__DIR__.'/../config/k8s.php', 'k8s'
22
);
23
24
- $this->app->bind('laravel.k8s', function () {
25
- $connection = config('k8s.default', 'kubeconfig');
+ $this->app->bind('laravel.k8s', function ($app) {
+ $config = $app['config']['k8s'];
26
+ $connection = $config['default'] ?? 'kubeconfig';
27
28
return new KubernetesCluster(
- $this->app['config']['k8s']['connections'][$connection] ?? []
29
+ $config['connections'][$connection] ?? []
30
31
});
32
}
0 commit comments