Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit fa7f78c

Browse files
anaik-zamandresmgot
authored andcommitted
adds support for aws-iam-authenticator (#192)
1 parent fecb01f commit fa7f78c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/helpers.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function getToken(userInfo) {
106106
_.get(userInfo, 'user.auth-provider.config.id-token');
107107
const accessToken = _.get(userInfo, 'user.auth-provider.config.access-token');
108108
let cmd = _.get(userInfo, 'user.exec.command');
109+
const awsClis = ['aws', 'aws-iam-authenticator'];
109110
if (token) {
110111
return token;
111112
} else if (accessToken) {
@@ -119,7 +120,7 @@ function getToken(userInfo) {
119120
}
120121
}
121122
return accessToken;
122-
} else if (cmd && cmd === 'aws') {
123+
} else if (cmd && awsClis.includes(cmd) !== -1) {
123124
const args = _.get(userInfo, 'user.exec.args');
124125
if (args) {
125126
cmd = `${cmd} ${args.join(' ')}`;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-kubeless",
3-
"version": "0.8.2",
3+
"version": "0.8.3",
44
"description": "This plugin enables support for Kubeless within the [Serverless Framework](https://github.com/serverless).",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)