Skip to content

Commit 4b8d5ac

Browse files
committed
Remove a requirement that apiVersion be present in the config.
1 parent 58aa674 commit 4b8d5ac

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@ export class KubeConfig {
157157

158158
public loadFromString(config: string) {
159159
const obj = yaml.safeLoad(config) as any;
160-
if (obj.apiVersion !== 'v1') {
161-
throw new TypeError('unknown version: ' + obj.apiVersion);
162-
}
163160
this.clusters = newClusters(obj.clusters);
164161
this.contexts = newContexts(obj.contexts);
165162
this.users = newUsers(obj.users);

0 commit comments

Comments
 (0)