mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add vcore limit support (#12212)
This commit is contained in:
@@ -266,7 +266,6 @@ export class MiaaDashboardOverviewPage extends DashboardPage {
|
|||||||
this._instanceProperties.dataController = config?.metadata.name || this._instanceProperties.dataController;
|
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.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.subscriptionId = config?.spec.settings.azure.subscription || this._instanceProperties.subscriptionId;
|
||||||
// this._instanceProperties.vCores = reg.vCores || '';
|
|
||||||
this.refreshDisplayedProperties();
|
this.refreshDisplayedProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -274,6 +273,7 @@ export class MiaaDashboardOverviewPage extends DashboardPage {
|
|||||||
if (this._miaaModel.config) {
|
if (this._miaaModel.config) {
|
||||||
this._instanceProperties.status = this._miaaModel.config.status.state || '-';
|
this._instanceProperties.status = this._miaaModel.config.status.state || '-';
|
||||||
this._instanceProperties.externalEndpoint = this._miaaModel.config.status.externalEndpoint || loc.notConfigured;
|
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 : '';
|
this._databasesMessage.value = !this._miaaModel.config.status.externalEndpoint ? loc.noExternalEndpoint : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ declare module 'azdata-ext' {
|
|||||||
uid: string // "cea737aa-3f82-4f6a-9bed-2b51c2c33dff"
|
uid: string // "cea737aa-3f82-4f6a-9bed-2b51c2c33dff"
|
||||||
},
|
},
|
||||||
spec: {
|
spec: {
|
||||||
|
limits?: {
|
||||||
|
vcores?: number // 4
|
||||||
|
}
|
||||||
service: {
|
service: {
|
||||||
type: string // "NodePort"
|
type: string // "NodePort"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user