Skip to content

Commit

Permalink
Merge pull request #202 from renoki-co/fix/gcloud
Browse files Browse the repository at this point in the history
[fix] Google Cloud authentication
  • Loading branch information
rennokki authored Mar 4, 2022
2 parents ff9d507 + 8b21b67 commit 8027fec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Traits/Cluster/LoadsFromKubeConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ protected function loadKubeConfigFromArray(array $kubeconfig, string $context =
$this->withToken($userConfig['user']['token']);
}

if (isset($userConfig['user']['auth-provider']['config']['access-token'])) {
$this->withToken($userConfig['user']['auth-provider']['config']['access-token']);
}

if (isset($clusterConfig['cluster']['insecure-skip-tls-verify']) && $clusterConfig['cluster']['insecure-skip-tls-verify']) {
$this->withoutSslChecks();
}
Expand Down

0 comments on commit 8027fec

Please sign in to comment.