File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 19
19
strategy :
20
20
matrix :
21
21
php :
22
- - ' 7.3'
23
22
- ' 7.4'
23
+ - ' 8.0'
24
24
laravel :
25
25
- 7.*
26
26
- 8.*
37
37
38
38
steps :
39
39
- uses : actions/checkout@v1
40
-
40
+
41
41
- name : Setup PHP
42
42
uses : shivammathur/setup-php@v2
43
43
with :
Original file line number Diff line number Diff line change 12
12
}
13
13
],
14
14
"require" : {
15
- "renoki-co/php-k8s" : " ^1.12 "
15
+ "renoki-co/php-k8s" : " ^2.0 "
16
16
},
17
17
"autoload" : {
18
18
"psr-4" : {
Original file line number Diff line number Diff line change 45
45
46
46
'http ' => [
47
47
'driver ' => 'http ' ,
48
- 'host ' => env ('KUBE_HOST ' , '127.0.0.1 ' ),
49
- 'port ' => env ('KUBE_PORT ' , 8080 ),
48
+ 'host ' => env ('KUBE_HOST ' , 'http://127.0.0.1:8080 ' ),
50
49
'ssl ' => [
51
50
'certificate ' => env ('KUBE_CERTIFICATE_PATH ' , null ),
52
51
'key ' => env ('KUBE_KEY_PATH ' , null ),
71
70
72
71
'token ' => [
73
72
'driver ' => 'token ' ,
74
- 'host ' => env ('KUBE_HOST ' , '127.0.0.1 ' ),
75
- 'port ' => env ('KUBE_PORT ' , 8080 ),
73
+ 'host ' => env ('KUBE_HOST ' , 'http://127.0.0.1:8080 ' ),
76
74
'ssl ' => [
77
75
'certificate ' => env ('KUBE_CERTIFICATE_PATH ' , null ),
78
76
'key ' => env ('KUBE_KEY_PATH ' , null ),
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public function connection(string $connection)
47
47
*/
48
48
protected function loadFromConfig (array $ config )
49
49
{
50
- $ this ->cluster = new PhpK8sCluster ('http://127.0.0.1 ' , 8080 );
50
+ $ this ->cluster = new PhpK8sCluster ('http://127.0.0.1: 8080 ' );
51
51
52
52
switch ($ config ['driver ' ] ?? null ) {
53
53
case 'kubeconfig ' : $ this ->configureWithKubeConfigFile ($ config ); break ;
@@ -78,9 +78,7 @@ protected function configureWithKubeConfigFile(array $config)
78
78
*/
79
79
protected function configureWithHttpAuth (array $ config )
80
80
{
81
- $ this ->cluster = new PhpK8sCluster (
82
- $ config ['host ' ], $ config ['port ' ]
83
- );
81
+ $ this ->cluster = new PhpK8sCluster ($ config ['host ' ]);
84
82
85
83
if ($ config ['ssl ' ]['verify ' ] ?? true ) {
86
84
$ this ->cluster ->withCertificate (
@@ -112,9 +110,7 @@ protected function configureWithHttpAuth(array $config)
112
110
*/
113
111
protected function configureWithToken (array $ config )
114
112
{
115
- $ this ->cluster = new PhpK8sCluster (
116
- $ config ['host ' ], $ config ['port ' ]
117
- );
113
+ $ this ->cluster = new PhpK8sCluster ($ config ['host ' ]);
118
114
119
115
if ($ config ['ssl ' ]['verify ' ] ?? true ) {
120
116
$ this ->cluster ->withCertificate (
You can’t perform that action at this time.
0 commit comments