Skip to content

Commit

Permalink
Merge pull request #66 from captain-igloo/master
Browse files Browse the repository at this point in the history
Use user.token from kube config.
  • Loading branch information
rennokki authored Feb 5, 2021
2 parents 279fe26 + 288ce52 commit 2cee963
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 @@ -117,6 +117,10 @@ protected function loadKubeConfigFromArray(array $kubeconfig, string $context):
$this->writeTempFileForContext($context, 'client-key.pem', $userConfig['user']['client-key-data'])
);
}

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

/**
Expand Down

0 comments on commit 2cee963

Please sign in to comment.