@kapeta/local-cluster-service 0.24.0 → 0.24.2
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/CHANGELOG.md +14 -0
- package/dist/cjs/src/assetManager.js +1 -1
- package/dist/cjs/src/containerManager.js +1 -1
- package/dist/esm/src/assetManager.js +1 -1
- package/dist/esm/src/containerManager.js +1 -1
- package/package.json +1 -1
- package/src/assetManager.ts +1 -1
- package/src/containerManager.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [0.24.2](https://github.com/kapetacom/local-cluster-service/compare/v0.24.1...v0.24.2) (2023-10-27)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Do not ensure when unregistering ([#91](https://github.com/kapetacom/local-cluster-service/issues/91)) ([3957d51](https://github.com/kapetacom/local-cluster-service/commit/3957d513ce3fd9064a36cea438967ae5a0a50720))
|
7
|
+
|
8
|
+
## [0.24.1](https://github.com/kapetacom/local-cluster-service/compare/v0.24.0...v0.24.1) (2023-10-27)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* increase timeout to try to compensate for slow machines ([#89](https://github.com/kapetacom/local-cluster-service/issues/89)) ([98f243f](https://github.com/kapetacom/local-cluster-service/commit/98f243fddf5ab827cc5fbb91e5bfd972a2137ea9))
|
14
|
+
|
1
15
|
# [0.24.0](https://github.com/kapetacom/local-cluster-service/compare/v0.23.0...v0.24.0) (2023-10-27)
|
2
16
|
|
3
17
|
|
@@ -166,7 +166,7 @@ class AssetManager {
|
|
166
166
|
return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
|
167
167
|
}
|
168
168
|
async unregisterAsset(ref) {
|
169
|
-
const asset = await this.getAsset(ref, true);
|
169
|
+
const asset = await this.getAsset(ref, true, false);
|
170
170
|
if (!asset) {
|
171
171
|
throw new Error('Asset does not exists: ' + ref);
|
172
172
|
}
|
@@ -22,7 +22,7 @@ const StreamValues_1 = __importDefault(require("stream-json/streamers/StreamValu
|
|
22
22
|
exports.CONTAINER_LABEL_PORT_PREFIX = 'kapeta_port-';
|
23
23
|
const NANO_SECOND = 1000000;
|
24
24
|
const HEALTH_CHECK_INTERVAL = 3000;
|
25
|
-
const HEALTH_CHECK_MAX =
|
25
|
+
const HEALTH_CHECK_MAX = 100;
|
26
26
|
exports.COMPOSE_LABEL_PROJECT = 'com.docker.compose.project';
|
27
27
|
exports.COMPOSE_LABEL_SERVICE = 'com.docker.compose.service';
|
28
28
|
exports.HEALTH_CHECK_TIMEOUT = HEALTH_CHECK_INTERVAL * HEALTH_CHECK_MAX * 2;
|
@@ -166,7 +166,7 @@ class AssetManager {
|
|
166
166
|
return assets.filter((a) => refs.some((ref) => compareRefs(ref, a.ref)));
|
167
167
|
}
|
168
168
|
async unregisterAsset(ref) {
|
169
|
-
const asset = await this.getAsset(ref, true);
|
169
|
+
const asset = await this.getAsset(ref, true, false);
|
170
170
|
if (!asset) {
|
171
171
|
throw new Error('Asset does not exists: ' + ref);
|
172
172
|
}
|
@@ -22,7 +22,7 @@ const StreamValues_1 = __importDefault(require("stream-json/streamers/StreamValu
|
|
22
22
|
exports.CONTAINER_LABEL_PORT_PREFIX = 'kapeta_port-';
|
23
23
|
const NANO_SECOND = 1000000;
|
24
24
|
const HEALTH_CHECK_INTERVAL = 3000;
|
25
|
-
const HEALTH_CHECK_MAX =
|
25
|
+
const HEALTH_CHECK_MAX = 100;
|
26
26
|
exports.COMPOSE_LABEL_PROJECT = 'com.docker.compose.project';
|
27
27
|
exports.COMPOSE_LABEL_SERVICE = 'com.docker.compose.service';
|
28
28
|
exports.HEALTH_CHECK_TIMEOUT = HEALTH_CHECK_INTERVAL * HEALTH_CHECK_MAX * 2;
|
package/package.json
CHANGED
package/src/assetManager.ts
CHANGED
@@ -227,7 +227,7 @@ class AssetManager {
|
|
227
227
|
}
|
228
228
|
|
229
229
|
async unregisterAsset(ref: string) {
|
230
|
-
const asset = await this.getAsset(ref, true);
|
230
|
+
const asset = await this.getAsset(ref, true, false);
|
231
231
|
if (!asset) {
|
232
232
|
throw new Error('Asset does not exists: ' + ref);
|
233
233
|
}
|
package/src/containerManager.ts
CHANGED
@@ -80,7 +80,7 @@ interface Health {
|
|
80
80
|
export const CONTAINER_LABEL_PORT_PREFIX = 'kapeta_port-';
|
81
81
|
const NANO_SECOND = 1000000;
|
82
82
|
const HEALTH_CHECK_INTERVAL = 3000;
|
83
|
-
const HEALTH_CHECK_MAX =
|
83
|
+
const HEALTH_CHECK_MAX = 100;
|
84
84
|
export const COMPOSE_LABEL_PROJECT = 'com.docker.compose.project';
|
85
85
|
export const COMPOSE_LABEL_SERVICE = 'com.docker.compose.service';
|
86
86
|
|