Skip to content

Commit 8027fec

Browse files
authored
Merge pull request #202 from renoki-co/fix/gcloud
[fix] Google Cloud authentication
2 parents ff9d507 + 8b21b67 commit 8027fec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Traits/Cluster/LoadsFromKubeConfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ protected function loadKubeConfigFromArray(array $kubeconfig, string $context =
214214
$this->withToken($userConfig['user']['token']);
215215
}
216216

217+
if (isset($userConfig['user']['auth-provider']['config']['access-token'])) {
218+
$this->withToken($userConfig['user']['auth-provider']['config']['access-token']);
219+
}
220+
217221
if (isset($clusterConfig['cluster']['insecure-skip-tls-verify']) && $clusterConfig['cluster']['insecure-skip-tls-verify']) {
218222
$this->withoutSslChecks();
219223
}

0 commit comments

Comments
 (0)