We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89a3289 + 1bdba21 commit 24f7c1bCopy full SHA for 24f7c1b
node-client/src/config.ts
@@ -228,7 +228,7 @@ export class KubeConfig {
228
// Format in file is {<query>}, so slice it out and add '$'
229
pathKey = '$' + pathKey.slice(1, -1);
230
231
- config['access-token'] = jsonpath.query(resultObj, path);
+ config['access-token'] = jsonpath.query(resultObj, pathKey);
232
token = 'Bearer ' + config['access-token'];
233
} else {
234
throw new Error('Token is expired!');
0 commit comments