Skip to content

Commit 2cee963

Browse files
authored
Merge pull request #66 from captain-igloo/master
Use user.token from kube config.
2 parents 279fe26 + 288ce52 commit 2cee963

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Traits/Cluster/LoadsFromKubeConfig.php

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ protected function loadKubeConfigFromArray(array $kubeconfig, string $context):
117117
$this->writeTempFileForContext($context, 'client-key.pem', $userConfig['user']['client-key-data'])
118118
);
119119
}
120+
121+
if (isset($userConfig['user']['token'])) {
122+
$this->withToken($userConfig['user']['token']);
123+
}
120124
}
121125

122126
/**

0 commit comments

Comments
 (0)