Enabled SQL MIAA deployment in direct mode (#17874)

* Added customlocation, location, resource group, and connection mode to controllerinfo. Updated SQL MIAA create notebook with direct mode params.

* Removed annotations from metadata in postgres test file.

* Only parse the customlocation if the connection mode is direct.

Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
Candice Ye
2021-12-09 12:14:31 -08:00
committed by GitHub
parent 46fc807b69
commit 0ec2974aa4
7 changed files with 53 additions and 5 deletions

View File

@@ -32,6 +32,10 @@ export class ArcControllersOptionsSourceProvider implements rd.IOptionsSourcePro
case 'namespace': return controller.info.namespace || '';
case 'kubeConfig': return controller.info.kubeConfigFilePath;
case 'clusterContext': return controller.info.kubeClusterContext;
case 'resourceGroup': return controller.info.resourceGroup;
case 'connectionMode': return controller.info.connectionMode;
case 'location': return controller.info.location;
case 'customLocation': return controller.info.customLocation;
default: throw new Error(loc.variableValueFetchForUnsupportedVariable(variableName));
}
}
@@ -41,6 +45,10 @@ export class ArcControllersOptionsSourceProvider implements rd.IOptionsSourcePro
case 'namespace': return false;
case 'kubeConfig': return false;
case 'clusterContext': return false;
case 'resourceGroup': return false;
case 'connectionMode': return false;
case 'location': return false;
case 'customLocation': return false;
default: throw new Error(loc.isPasswordFetchForUnsupportedVariable(variableName));
}
}