Skip to content

Commit e94a50d

Browse files
authored
Merge pull request #89 from brendandburns/cleanup
Remove auth-wrapper as it's no longer needed.
2 parents 421427e + 0f4c28f commit e94a50d

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

node-client/src/auth-wrapper.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

node-client/src/config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ import yaml = require('js-yaml');
77
import jsonpath = require('jsonpath');
88
import request = require('request');
99
import shelljs = require('shelljs');
10+
1011
import api = require('./api');
1112
import { Cluster, Context, newClusters, newContexts, newUsers, User } from './config_types';
1213

13-
import client = require('./auth-wrapper');
14-
1514
export class KubeConfig {
1615

1716
// Only really public for testing...
@@ -334,7 +333,7 @@ export class Config {
334333
const caCert = fs.readFileSync(Config.SERVICEACCOUNT_CA_PATH);
335334
const token = fs.readFileSync(Config.SERVICEACCOUNT_TOKEN_PATH);
336335

337-
const k8sApi = new client.Core_v1Api('https://' + host + ':' + port);
336+
const k8sApi = new api.Core_v1Api('https://' + host + ':' + port);
338337
k8sApi.setDefaultAuthentication({
339338
applyToRequest: (opts) => {
340339
opts.ca = caCert;

0 commit comments

Comments
 (0)