@kumori/aurora-backend-handler 1.1.69 → 1.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -138,6 +138,7 @@ export interface ServiceSpecForm {
|
|
|
138
138
|
};
|
|
139
139
|
histeresys: string;
|
|
140
140
|
};
|
|
141
|
+
hsize?: number;
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
export interface ServiceWithLocalComponentSpec {
|
|
@@ -1058,7 +1059,7 @@ export async function generateServiceSpec(
|
|
|
1058
1059
|
detail: (marketplaceItem.roles ?? []).reduce(
|
|
1059
1060
|
(acc, role) => ({
|
|
1060
1061
|
...acc,
|
|
1061
|
-
[withDefaultValue(role, "")]: 1,
|
|
1062
|
+
[withDefaultValue(role, "")]: (marketplaceItem.deploymentData.role ?? []).find((r) => r.name === withDefaultValue(role, ""))?.hsize || 1,
|
|
1062
1063
|
}),
|
|
1063
1064
|
{},
|
|
1064
1065
|
),
|
|
@@ -1101,7 +1102,7 @@ export async function generateServiceSpec(
|
|
|
1101
1102
|
],
|
|
1102
1103
|
scale: {
|
|
1103
1104
|
detail: {
|
|
1104
|
-
[withDefaultValue(form.serviceId, "")]: 1,
|
|
1105
|
+
[withDefaultValue(form.serviceId, "")]: form.hsize || 1,
|
|
1105
1106
|
},
|
|
1106
1107
|
},
|
|
1107
1108
|
meta: autoscalingDefined
|
|
@@ -1610,7 +1611,7 @@ async function generateServiceSpecDSL(
|
|
|
1610
1611
|
],
|
|
1611
1612
|
scale: {
|
|
1612
1613
|
detail: {
|
|
1613
|
-
[withDefaultValue(form.serviceId, "")]: 1,
|
|
1614
|
+
[withDefaultValue(form.serviceId, "")]: form.hsize || 1,
|
|
1614
1615
|
},
|
|
1615
1616
|
},
|
|
1616
1617
|
meta: {
|