mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -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.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 : '';
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,9 @@ declare module 'azdata-ext' {
|
||||
uid: string // "cea737aa-3f82-4f6a-9bed-2b51c2c33dff"
|
||||
},
|
||||
spec: {
|
||||
limits?: {
|
||||
vcores?: number // 4
|
||||
}
|
||||
service: {
|
||||
type: string // "NodePort"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user