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 bf6072c + 1aa4b1a commit 2187d85Copy full SHA for 2187d85
src/kube-scanner/cluster.ts
@@ -4,13 +4,6 @@ import { IK8sClients, K8sClients } from './types';
4
5
function getKubeConfig(): KubeConfig {
6
const kc = new KubeConfig();
7
- // TODO(ivanstanev): We may need to change this to loadFromClusterAndUser()
8
- // and pass the cluster and user from somewhere (e.g. env vars).
9
- // By default, these would be (as taken from the k8s client source):
10
- // { name: 'cluster', server: 'http://localhost:8080' } as Cluster,
11
- // { name: 'user' } as User
12
- // We need to identify what the implications of this are, and whether
13
- // our customers would want to configure this. Keep an eye on this!
14
kc.loadFromDefault();
15
return kc;
16
}
0 commit comments