@kapeta/local-cluster-service 0.7.1 → 0.7.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
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.7.2](https://github.com/kapetacom/local-cluster-service/compare/v0.7.1...v0.7.2) (2023-07-16)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* Removed missed module.exports from TS module ([d6d85af](https://github.com/kapetacom/local-cluster-service/commit/d6d85af4823960baa52d3a87243d2639dd4cdab4))
|
7
|
+
|
1
8
|
## [0.7.1](https://github.com/kapetacom/local-cluster-service/compare/v0.7.0...v0.7.1) (2023-07-16)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/operatorManager.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import ClusterConfiguration, { DefinitionInfo } from '@kapeta/local-cluster-config';
|
2
|
-
import _ from 'lodash';
|
3
2
|
import Path from 'path';
|
4
3
|
import md5 from 'md5';
|
5
4
|
import { parseKapetaUri } from '@kapeta/nodejs-utils';
|
@@ -8,7 +7,7 @@ import { storageService } from './storageService';
|
|
8
7
|
import { ContainerInfo, containerManager } from './containerManager';
|
9
8
|
import FSExtra from 'fs-extra';
|
10
9
|
import { AnyMap, EnvironmentType, OperatorInfo } from './types';
|
11
|
-
import { BlockInstance,
|
10
|
+
import { BlockInstance, Resource } from '@kapeta/schemas';
|
12
11
|
|
13
12
|
const KIND_OPERATOR = 'core/resource-type-operator';
|
14
13
|
|
package/src/repositoryManager.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { spawn } from 'node:child_process';
|
2
1
|
import FS from 'node:fs';
|
3
|
-
import Path from 'node:path';
|
4
|
-
import { Docker } from 'node-docker-api';
|
5
2
|
import ClusterConfig, { DefinitionInfo } from '@kapeta/local-cluster-config';
|
6
3
|
import { readYML } from './utils';
|
7
4
|
import { KapetaURI, parseKapetaUri } from '@kapeta/nodejs-utils';
|
@@ -10,10 +7,8 @@ import { containerManager, DockerMounts } from '../containerManager';
|
|
10
7
|
import { LogData } from './LogData';
|
11
8
|
import EventEmitter from 'events';
|
12
9
|
import md5 from 'md5';
|
13
|
-
import { execSync } from 'child_process';
|
14
10
|
import { clusterService } from '../clusterService';
|
15
11
|
import { AnyMap, BlockProcessParams, ProcessDetails, ProcessInfo, StringMap } from '../types';
|
16
|
-
import { BlockDefinition, BlockInstance, BlockInstanceConfiguration, BlockResource } from '@kapeta/schemas';
|
17
12
|
import { Container } from 'node-docker-api/lib/container';
|
18
13
|
|
19
14
|
const KIND_BLOCK_TYPE_OPERATOR = 'core/block-type-operator';
|
package/src/utils/LogData.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import { LogEntry, LogLevel, LogSource } from '../types';
|
2
2
|
|
3
3
|
const MAX_LINES = 1000;
|
4
|
-
|
5
4
|
export class LogData {
|
6
5
|
public static readonly MAX_LINES = MAX_LINES;
|
7
6
|
private readonly entries: LogEntry[] = [];
|
@@ -43,5 +42,3 @@ export class LogData {
|
|
43
42
|
.join('\n');
|
44
43
|
}
|
45
44
|
}
|
46
|
-
|
47
|
-
module.exports = LogData;
|