Skip to content

Commit 0f4c28f

Browse files
committed
Remove auth-wrapper as it's no longer needed.
1 parent 3964c7b commit 0f4c28f

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
@@ -8,11 +8,10 @@ import yaml = require('js-yaml');
88
import jsonpath = require('jsonpath');
99
import request = require('request');
1010
import shelljs = require('shelljs');
11+
1112
import api = require('./api');
1213
import { Cluster, Context, newClusters, newContexts, newUsers, User } from './config_types';
1314

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

1817
// 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)