@firestartr/cli 1.47.0 → 1.48.0-hotfix-1
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/build/index.js +83820 -111790
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/argodeploy.schema.d.ts +2 -8
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/common-meta.schema.d.ts +2 -34
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/component.schema.d.ts +2 -19
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/domain.schema.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/group.schema.d.ts +2 -10
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +22 -92
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/orgwebhook.schema.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/secrets.schema.d.ts +2 -4
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/system.schema.d.ts +2 -4
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/tfworkspace.schema.d.ts +3 -7
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/user.schema.d.ts +2 -1
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/claims/github/feature.schema.d.ts +0 -2
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +0 -3
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/terraform.schema.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/config.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/defaults/base.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/initializers/branchStrategies.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/loader/lazy_loader.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/loader/loader.d.ts +9 -1
- package/build/packages/cdk8s_renderer/src/renderer/renderer.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/utils/claimUtils.d.ts +0 -4
- package/build/packages/cdk8s_renderer/src/validations/references.d.ts +5 -0
- package/build/packages/cdk8s_renderer/src/validations/wellKnownStructures.d.ts +1 -0
- package/build/packages/github/src/auth.d.ts +2 -2
- package/build/packages/operator/src/metricsServer.d.ts +1 -1
- package/build/packages/scaffolder/src/scaffolder.d.ts +1 -1
- package/package.json +1 -1
- package/build/351.index.js +0 -36
- package/build/540.index.js +0 -80
- package/build/594.index.js +0 -46
- package/build/647.index.js +0 -80
- package/build/857.index.js +0 -79
- package/build/packages/cdk8s_renderer/src/claims/base/schema.d.ts +0 -1
- package/build/packages/operator/src/logger.d.ts +0 -9
- package/build/packages/operator/src/metrics/CRStates.d.ts +0 -20
|
@@ -5,7 +5,6 @@ declare const _default: {
|
|
|
5
5
|
GithubComponentFeatureClaim: {
|
|
6
6
|
$id: string;
|
|
7
7
|
description: string;
|
|
8
|
-
type: string;
|
|
9
8
|
properties: {
|
|
10
9
|
name: {
|
|
11
10
|
type: string;
|
|
@@ -33,7 +32,6 @@ declare const _default: {
|
|
|
33
32
|
};
|
|
34
33
|
required: string[];
|
|
35
34
|
oneOf: {
|
|
36
|
-
type: string;
|
|
37
35
|
required: string[];
|
|
38
36
|
not: {
|
|
39
37
|
required: string[];
|
|
@@ -66,7 +66,6 @@ export declare const GithubSchemas: ({
|
|
|
66
66
|
GithubComponentFeatureClaim: {
|
|
67
67
|
$id: string;
|
|
68
68
|
description: string;
|
|
69
|
-
type: string;
|
|
70
69
|
properties: {
|
|
71
70
|
name: {
|
|
72
71
|
type: string;
|
|
@@ -94,7 +93,6 @@ export declare const GithubSchemas: ({
|
|
|
94
93
|
};
|
|
95
94
|
required: string[];
|
|
96
95
|
oneOf: {
|
|
97
|
-
type: string;
|
|
98
96
|
required: string[];
|
|
99
97
|
not: {
|
|
100
98
|
required: string[];
|
|
@@ -111,7 +109,6 @@ export declare const GithubSchemas: ({
|
|
|
111
109
|
$id: string;
|
|
112
110
|
type: string;
|
|
113
111
|
description: string;
|
|
114
|
-
unevaluatedProperties: boolean;
|
|
115
112
|
allOf: ({
|
|
116
113
|
$ref: string;
|
|
117
114
|
type?: undefined;
|
|
@@ -15,6 +15,5 @@ export declare enum AllowedProviders {
|
|
|
15
15
|
externalSecrets = "externalSecrets"
|
|
16
16
|
}
|
|
17
17
|
export declare function configureProvider(provider: AllowedProviders): void;
|
|
18
|
-
export declare function reconfigureProvider(provider: AllowedProviders): void;
|
|
19
18
|
export declare function getSelectedKindClaimCrMap(provider?: string): any;
|
|
20
19
|
export declare function getConfiguredProvider(): AllowedProviders;
|
|
@@ -6,7 +6,7 @@ export declare abstract class DefaultSection extends BasePatches {
|
|
|
6
6
|
protected claimKind?: string;
|
|
7
7
|
arrayPaths: any;
|
|
8
8
|
abstract __getDesiredPatches(cr: any, data: any): any[];
|
|
9
|
-
validate(schema: any): Promise<
|
|
9
|
+
validate(schema: any): Promise<any>;
|
|
10
10
|
__patches(patchData: any, mergeFilterFn: Function): Promise<ICustomResourcePatch[]>;
|
|
11
11
|
_mergeObjectArrays(cr: any, patchData: any, mergeFilterFn: Function, arrayPaths: any): Promise<{
|
|
12
12
|
cr: any;
|
|
@@ -4,6 +4,6 @@ export declare class BranchStrategiesInitializer extends InitializerPatches {
|
|
|
4
4
|
protected static fileName?: string;
|
|
5
5
|
applicableProviders: string[];
|
|
6
6
|
constructor(data?: any);
|
|
7
|
-
__validate(schema: any): Promise<
|
|
7
|
+
__validate(schema: any): Promise<any>;
|
|
8
8
|
__patches(claim: any, previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
9
9
|
}
|
|
@@ -3,4 +3,3 @@ import { GlobalSection } from '../globals/base';
|
|
|
3
3
|
import { OverriderPatches } from '../overriders/base';
|
|
4
4
|
import { Normalizer } from '../normalizers/base';
|
|
5
5
|
export declare function loadClaim(claimRef: string, org: string, defaults: any, patchClaim: (claim: any, defaults: any) => any, loadInitializers: (claim: any) => Promise<InitializerPatches[]>, loadGlobals: (claim: any) => Promise<GlobalSection[]>, loadOverrides: (claim: any) => OverriderPatches[], loadNormalizers: (claim: any, path: string) => Promise<Normalizer[]>, cwd?: string, existingRefs?: any): Promise<any>;
|
|
6
|
-
export declare function resetLazyLoader(): void;
|
|
@@ -4,6 +4,8 @@ import { OverriderPatches } from '../overriders/base';
|
|
|
4
4
|
import { Normalizer } from '../normalizers/base';
|
|
5
5
|
import { RenderClaims } from '../renderer/types';
|
|
6
6
|
export declare const isYamlFile: RegExp;
|
|
7
|
+
export declare function loadSystems(): Promise<any[]>;
|
|
8
|
+
export declare function loadDomains(): Promise<any[]>;
|
|
7
9
|
export declare function loadGlobals(claim: any): Promise<GlobalSection[]>;
|
|
8
10
|
export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
9
11
|
/**
|
|
@@ -13,6 +15,7 @@ export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
|
13
15
|
*/
|
|
14
16
|
export declare function loadNormalizers(_claim: any, path?: string): Promise<Normalizer[]>;
|
|
15
17
|
export declare function loadInitializers(claim: any, initializersPath?: string): Promise<InitializerPatches[]>;
|
|
18
|
+
export declare function loadClaims(claimsPath?: string): Promise<RenderClaims>;
|
|
16
19
|
export declare function loadClaimDefaults(): any;
|
|
17
20
|
export declare function patchClaim(claim: any, defaultsClaims: any): any;
|
|
18
21
|
export declare function loadCRs(crsPath?: string, excludedPaths?: string[], allowedClaimReferences?: string[]): Promise<any>;
|
|
@@ -31,7 +34,12 @@ export interface RenderData {
|
|
|
31
34
|
renames?: any;
|
|
32
35
|
crs?: any;
|
|
33
36
|
}
|
|
34
|
-
export declare function
|
|
37
|
+
export declare function loadAll(): Promise<{
|
|
38
|
+
renderClaims: RenderClaims;
|
|
39
|
+
crs: any;
|
|
40
|
+
renames?: IRenameResult[];
|
|
41
|
+
}>;
|
|
42
|
+
export declare function loadClaimsList(claimRefList: string[], claimsPath?: string): Promise<{
|
|
35
43
|
renderClaims: RenderClaims;
|
|
36
44
|
crs: any;
|
|
37
45
|
renames?: IRenameResult[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Construct } from 'constructs';
|
|
2
2
|
import { RenderedCrMap } from './types';
|
|
3
|
-
export declare function render(catalogScope: Construct, firestartrScope: Construct, activateReferentialIntegrityValidation
|
|
3
|
+
export declare function render(catalogScope: Construct, firestartrScope: Construct, activateReferentialIntegrityValidation?: boolean, claimList?: string[]): Promise<RenderedCrMap>;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
export declare function resolveStringReference(reference: string): any;
|
|
2
|
-
export declare function claimsRefListAsGenerator(refs: string[]): AsyncGenerator<string, void, unknown>;
|
|
3
2
|
export declare function resolveClaimFilesList(claimRefsList: string): string[];
|
|
4
|
-
export declare function resolveClaimEntries(claimRefsList: string[]): AsyncGenerator<string, void, unknown>;
|
|
5
|
-
export declare function resolveClaimFileRef(claimFile: string): Promise<string>;
|
|
6
|
-
export declare function getClaimsEntryAbsolutePath(claimsDir: string, entryPath: string): string;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description This function validates that all references in the CRs are valid
|
|
3
|
+
* @param crs The crs object is a map of crs where the key is the kind and metada.name of the cr
|
|
4
|
+
*/
|
|
5
|
+
export declare function validateReferentialIntegrity(crs: any): void;
|
|
1
6
|
export declare function validateTfStateKeyUniqueness(crs: any): void;
|
|
2
7
|
export declare function isCatalogEntity(cr: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isCollaborator(struc: any): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Octokit } from '@octokit/rest';
|
|
2
2
|
export declare const generateGithubAppToken: (config: any) => Promise<string>;
|
|
3
|
-
export declare function getGithubAppToken(org
|
|
4
|
-
export declare function getOctokitForOrg(org
|
|
3
|
+
export declare function getGithubAppToken(org?: string, genGithubAppToken?: any): Promise<string>;
|
|
4
|
+
export declare function getOctokitForOrg(org?: string, paginated?: boolean, genGithubAppToken?: any): Promise<Octokit>;
|
|
5
5
|
export declare function getOctokitFromPat(envVar: string): Promise<Octokit>;
|
|
6
6
|
declare const _default: {
|
|
7
7
|
getOctokitForOrg: typeof getOctokitForOrg;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function (
|
|
1
|
+
export default function (): Promise<void>;
|
package/package.json
CHANGED
package/build/351.index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export const id = 351;
|
|
2
|
-
export const ids = [351];
|
|
3
|
-
export const modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 8351:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* Copyright The OpenTelemetry Authors
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
25
|
-
exports.getMachineId = void 0;
|
|
26
|
-
const api_1 = __webpack_require__(78199);
|
|
27
|
-
async function getMachineId() {
|
|
28
|
-
api_1.diag.debug('could not read machine-id: unsupported platform');
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
exports.getMachineId = getMachineId;
|
|
32
|
-
//# sourceMappingURL=getMachineId-unsupported.js.map
|
|
33
|
-
|
|
34
|
-
/***/ })
|
|
35
|
-
|
|
36
|
-
};
|
package/build/540.index.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export const id = 540;
|
|
2
|
-
export const ids = [540];
|
|
3
|
-
export const modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 74412:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* Copyright The OpenTelemetry Authors
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
25
|
-
exports.execAsync = void 0;
|
|
26
|
-
const child_process = __webpack_require__(32081);
|
|
27
|
-
const util = __webpack_require__(73837);
|
|
28
|
-
exports.execAsync = util.promisify(child_process.exec);
|
|
29
|
-
//# sourceMappingURL=execAsync.js.map
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
|
-
/***/ 77540:
|
|
34
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* Copyright The OpenTelemetry Authors
|
|
39
|
-
*
|
|
40
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
|
-
* you may not use this file except in compliance with the License.
|
|
42
|
-
* You may obtain a copy of the License at
|
|
43
|
-
*
|
|
44
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
45
|
-
*
|
|
46
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
47
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
48
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
49
|
-
* See the License for the specific language governing permissions and
|
|
50
|
-
* limitations under the License.
|
|
51
|
-
*/
|
|
52
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53
|
-
exports.getMachineId = void 0;
|
|
54
|
-
const execAsync_1 = __webpack_require__(74412);
|
|
55
|
-
const api_1 = __webpack_require__(78199);
|
|
56
|
-
async function getMachineId() {
|
|
57
|
-
try {
|
|
58
|
-
const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
|
59
|
-
const idLine = result.stdout
|
|
60
|
-
.split('\n')
|
|
61
|
-
.find(line => line.includes('IOPlatformUUID'));
|
|
62
|
-
if (!idLine) {
|
|
63
|
-
return undefined;
|
|
64
|
-
}
|
|
65
|
-
const parts = idLine.split('" = "');
|
|
66
|
-
if (parts.length === 2) {
|
|
67
|
-
return parts[1].slice(0, -1);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
catch (e) {
|
|
71
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
72
|
-
}
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
exports.getMachineId = getMachineId;
|
|
76
|
-
//# sourceMappingURL=getMachineId-darwin.js.map
|
|
77
|
-
|
|
78
|
-
/***/ })
|
|
79
|
-
|
|
80
|
-
};
|
package/build/594.index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export const id = 594;
|
|
2
|
-
export const ids = [594];
|
|
3
|
-
export const modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 55594:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10
|
-
exports.getMachineId = void 0;
|
|
11
|
-
/*
|
|
12
|
-
* Copyright The OpenTelemetry Authors
|
|
13
|
-
*
|
|
14
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
15
|
-
* you may not use this file except in compliance with the License.
|
|
16
|
-
* You may obtain a copy of the License at
|
|
17
|
-
*
|
|
18
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
-
*
|
|
20
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
21
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
22
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
23
|
-
* See the License for the specific language governing permissions and
|
|
24
|
-
* limitations under the License.
|
|
25
|
-
*/
|
|
26
|
-
const fs_1 = __webpack_require__(57147);
|
|
27
|
-
const api_1 = __webpack_require__(78199);
|
|
28
|
-
async function getMachineId() {
|
|
29
|
-
const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
|
|
30
|
-
for (const path of paths) {
|
|
31
|
-
try {
|
|
32
|
-
const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
|
|
33
|
-
return result.trim();
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
|
-
exports.getMachineId = getMachineId;
|
|
42
|
-
//# sourceMappingURL=getMachineId-linux.js.map
|
|
43
|
-
|
|
44
|
-
/***/ })
|
|
45
|
-
|
|
46
|
-
};
|
package/build/647.index.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export const id = 647;
|
|
2
|
-
export const ids = [647];
|
|
3
|
-
export const modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 74412:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* Copyright The OpenTelemetry Authors
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
25
|
-
exports.execAsync = void 0;
|
|
26
|
-
const child_process = __webpack_require__(32081);
|
|
27
|
-
const util = __webpack_require__(73837);
|
|
28
|
-
exports.execAsync = util.promisify(child_process.exec);
|
|
29
|
-
//# sourceMappingURL=execAsync.js.map
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
|
-
/***/ 22647:
|
|
34
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* Copyright The OpenTelemetry Authors
|
|
39
|
-
*
|
|
40
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
|
-
* you may not use this file except in compliance with the License.
|
|
42
|
-
* You may obtain a copy of the License at
|
|
43
|
-
*
|
|
44
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
45
|
-
*
|
|
46
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
47
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
48
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
49
|
-
* See the License for the specific language governing permissions and
|
|
50
|
-
* limitations under the License.
|
|
51
|
-
*/
|
|
52
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53
|
-
exports.getMachineId = void 0;
|
|
54
|
-
const process = __webpack_require__(77282);
|
|
55
|
-
const execAsync_1 = __webpack_require__(74412);
|
|
56
|
-
const api_1 = __webpack_require__(78199);
|
|
57
|
-
async function getMachineId() {
|
|
58
|
-
const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
|
|
59
|
-
let command = '%windir%\\System32\\REG.exe';
|
|
60
|
-
if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
|
|
61
|
-
command = '%windir%\\sysnative\\cmd.exe /c ' + command;
|
|
62
|
-
}
|
|
63
|
-
try {
|
|
64
|
-
const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
|
|
65
|
-
const parts = result.stdout.split('REG_SZ');
|
|
66
|
-
if (parts.length === 2) {
|
|
67
|
-
return parts[1].trim();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
catch (e) {
|
|
71
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
72
|
-
}
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
exports.getMachineId = getMachineId;
|
|
76
|
-
//# sourceMappingURL=getMachineId-win.js.map
|
|
77
|
-
|
|
78
|
-
/***/ })
|
|
79
|
-
|
|
80
|
-
};
|
package/build/857.index.js
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export const id = 857;
|
|
2
|
-
export const ids = [857];
|
|
3
|
-
export const modules = {
|
|
4
|
-
|
|
5
|
-
/***/ 74412:
|
|
6
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
* Copyright The OpenTelemetry Authors
|
|
11
|
-
*
|
|
12
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
-
* you may not use this file except in compliance with the License.
|
|
14
|
-
* You may obtain a copy of the License at
|
|
15
|
-
*
|
|
16
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
*
|
|
18
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
-
* See the License for the specific language governing permissions and
|
|
22
|
-
* limitations under the License.
|
|
23
|
-
*/
|
|
24
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
25
|
-
exports.execAsync = void 0;
|
|
26
|
-
const child_process = __webpack_require__(32081);
|
|
27
|
-
const util = __webpack_require__(73837);
|
|
28
|
-
exports.execAsync = util.promisify(child_process.exec);
|
|
29
|
-
//# sourceMappingURL=execAsync.js.map
|
|
30
|
-
|
|
31
|
-
/***/ }),
|
|
32
|
-
|
|
33
|
-
/***/ 65857:
|
|
34
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* Copyright The OpenTelemetry Authors
|
|
39
|
-
*
|
|
40
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
41
|
-
* you may not use this file except in compliance with the License.
|
|
42
|
-
* You may obtain a copy of the License at
|
|
43
|
-
*
|
|
44
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
|
45
|
-
*
|
|
46
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
47
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
48
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
49
|
-
* See the License for the specific language governing permissions and
|
|
50
|
-
* limitations under the License.
|
|
51
|
-
*/
|
|
52
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
53
|
-
exports.getMachineId = void 0;
|
|
54
|
-
const fs_1 = __webpack_require__(57147);
|
|
55
|
-
const execAsync_1 = __webpack_require__(74412);
|
|
56
|
-
const api_1 = __webpack_require__(78199);
|
|
57
|
-
async function getMachineId() {
|
|
58
|
-
try {
|
|
59
|
-
const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
|
|
60
|
-
return result.trim();
|
|
61
|
-
}
|
|
62
|
-
catch (e) {
|
|
63
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
64
|
-
}
|
|
65
|
-
try {
|
|
66
|
-
const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
|
|
67
|
-
return result.stdout.trim();
|
|
68
|
-
}
|
|
69
|
-
catch (e) {
|
|
70
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
71
|
-
}
|
|
72
|
-
return undefined;
|
|
73
|
-
}
|
|
74
|
-
exports.getMachineId = getMachineId;
|
|
75
|
-
//# sourceMappingURL=getMachineId-bsd.js.map
|
|
76
|
-
|
|
77
|
-
/***/ })
|
|
78
|
-
|
|
79
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SCHEMA = "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Meter } from '@opentelemetry/api';
|
|
2
|
-
export default class CRStateMetrics {
|
|
3
|
-
kind: string;
|
|
4
|
-
updateInterval: any;
|
|
5
|
-
provisionedGauge: any;
|
|
6
|
-
provisioningGauge: any;
|
|
7
|
-
outOfSyncGauge: any;
|
|
8
|
-
planningGauge: any;
|
|
9
|
-
deletedGauge: any;
|
|
10
|
-
errorGauge: any;
|
|
11
|
-
onUpdate: boolean;
|
|
12
|
-
namespace: string;
|
|
13
|
-
kc: any;
|
|
14
|
-
fListCRs: Function;
|
|
15
|
-
constructor(kind: string, namespace: string, meter: Meter);
|
|
16
|
-
start(): Promise<void>;
|
|
17
|
-
stop(): void;
|
|
18
|
-
update(): Promise<void>;
|
|
19
|
-
__prepareConnection(): Promise<void>;
|
|
20
|
-
}
|