Skip to content

Commit

Permalink
Remove a requirement that apiVersion be present in the config.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanburns committed Jan 11, 2020
1 parent 58aa674 commit 4b8d5ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ export class KubeConfig {

public loadFromString(config: string) {
const obj = yaml.safeLoad(config) as any;
if (obj.apiVersion !== 'v1') {
throw new TypeError('unknown version: ' + obj.apiVersion);
}
this.clusters = newClusters(obj.clusters);
this.contexts = newContexts(obj.contexts);
this.users = newUsers(obj.users);
Expand Down

0 comments on commit 4b8d5ac

Please sign in to comment.