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.
KubeConfig#loadFromOptions
1 parent 4736874 commit abeeeb3Copy full SHA for abeeeb3
src/config.ts
@@ -180,7 +180,12 @@ export class KubeConfig {
180
this.currentContext = obj['current-context'];
181
}
182
183
- public loadFromOptions(options: any): void {
+ public loadFromOptions(options: {
184
+ clusters: Cluster[];
185
+ contexts: Context[];
186
+ currentContext: Context['name'];
187
+ users: User[];
188
+ }): void {
189
this.clusters = options.clusters;
190
this.contexts = options.contexts;
191
this.users = options.users;
0 commit comments