Feature/mssql-big-data-cluster (#4107)

* Adding kubernetes installer.

* Adding variety of kubectl support and integrating into the kubeconfig target cluster page.

* Addressing PR comments, refactored utility file locations and added missing license headers.
This commit is contained in:
Ronald Quan
2019-02-25 15:09:22 -08:00
committed by GitHub
parent a71be2b193
commit d0a4a4242d
19 changed files with 1701 additions and 18 deletions

View File

@@ -6,15 +6,17 @@
import * as vscode from 'vscode';
import { CreateClusterWizard } from './wizards/create-cluster/createClusterWizard';
import { Kubectl } from './kubectl/kubectl';
/**
* The main controller class that initializes the extension
*/
export class MainController {
protected _context: vscode.ExtensionContext;
protected _kubectl : Kubectl;
public constructor(context: vscode.ExtensionContext) {
public constructor(context: vscode.ExtensionContext, kubectl: Kubectl) {
this._context = context;
this._kubectl = kubectl;
}
/**
@@ -22,7 +24,7 @@ export class MainController {
*/
public activate(): void {
vscode.commands.registerCommand('mssql.cluster.create', () => {
let wizard = new CreateClusterWizard(this._context);
let wizard = new CreateClusterWizard(this._context, this._kubectl);
wizard.open();
});
}