Add vcore limit support (#12212)

This commit is contained in:
Chris LaFreniere
2020-09-10 21:45:38 -07:00
committed by GitHub
parent 1f0cdf82e4
commit 02ddfc20f1
2 changed files with 4 additions and 1 deletions

View File

@@ -266,7 +266,6 @@ export class MiaaDashboardOverviewPage extends DashboardPage {
this._instanceProperties.dataController = config?.metadata.name || this._instanceProperties.dataController;
this._instanceProperties.region = this._azurecoreApi.getRegionDisplayName(config?.spec.settings.azure.location) || this._instanceProperties.region;
this._instanceProperties.subscriptionId = config?.spec.settings.azure.subscription || this._instanceProperties.subscriptionId;
// this._instanceProperties.vCores = reg.vCores || '';
this.refreshDisplayedProperties();
}
@@ -274,6 +273,7 @@ export class MiaaDashboardOverviewPage extends DashboardPage {
if (this._miaaModel.config) {
this._instanceProperties.status = this._miaaModel.config.status.state || '-';
this._instanceProperties.externalEndpoint = this._miaaModel.config.status.externalEndpoint || loc.notConfigured;
this._instanceProperties.vCores = this._miaaModel.config.spec.limits?.vcores?.toString() || '';
this._databasesMessage.value = !this._miaaModel.config.status.externalEndpoint ? loc.noExternalEndpoint : '';
}

View File

@@ -118,6 +118,9 @@ declare module 'azdata-ext' {
uid: string // "cea737aa-3f82-4f6a-9bed-2b51c2c33dff"
},
spec: {
limits?: {
vcores?: number // 4
}
service: {
type: string // "NodePort"
}