@alienplatform/core 3.3.13 → 3.3.14
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.
- package/dist/index.d.ts +33 -31
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8140,6 +8140,7 @@ var ComputeCluster = class {
|
|
|
8140
8140
|
return "compute-cluster";
|
|
8141
8141
|
}
|
|
8142
8142
|
pool(groupId, config) {
|
|
8143
|
+
if (config.failureDomainSpread !== void 0 && (!Number.isInteger(config.failureDomainSpread) || config.failureDomainSpread < 1 || config.failureDomainSpread > 255)) throw new Error("Compute pool failureDomainSpread must be an integer from 1 to 255");
|
|
8143
8144
|
const { minSize, maxSize } = selectedScaleBounds(config.scale);
|
|
8144
8145
|
this._config.capacityGroups.push({
|
|
8145
8146
|
groupId,
|
|
@@ -8149,6 +8150,10 @@ var ComputeCluster = class {
|
|
|
8149
8150
|
scalePolicy: scalePolicyFromInput(config.scale),
|
|
8150
8151
|
nestedVirtualization: config.requirements.nestedVirtualization
|
|
8151
8152
|
});
|
|
8153
|
+
if (config.failureDomainSpread !== void 0) {
|
|
8154
|
+
this._config.failureDomainSpread ??= {};
|
|
8155
|
+
this._config.failureDomainSpread[groupId] = config.failureDomainSpread;
|
|
8156
|
+
}
|
|
8152
8157
|
return this;
|
|
8153
8158
|
}
|
|
8154
8159
|
/**
|