@firestartr/cli 1.48.0-hotfix-1 → 1.48.0-hotfix-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/build/351.index.js +36 -0
- package/build/540.index.js +80 -0
- package/build/594.index.js +46 -0
- package/build/647.index.js +80 -0
- package/build/857.index.js +79 -0
- package/build/index.js +111579 -83049
- package/build/packages/catalog_common/index.d.ts +8 -0
- package/build/packages/catalog_common/src/io/write.d.ts +2 -2
- package/build/packages/catalog_common/src/logger/index.d.ts +2 -0
- package/build/packages/catalog_common/src/logger/logger.d.ts +9 -0
- package/build/packages/catalog_common/src/logger/utils.d.ts +1 -0
- package/build/packages/catalog_common/src/types/envvars.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schema.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/argodeploy.schema.d.ts +8 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/common-meta.schema.d.ts +34 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/component.schema.d.ts +19 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/domain.schema.d.ts +1 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/group.schema.d.ts +10 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +92 -22
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/orgwebhook.schema.d.ts +1 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/secrets.schema.d.ts +4 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/system.schema.d.ts +4 -2
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/tfworkspace.schema.d.ts +7 -3
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/user.schema.d.ts +1 -2
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/claims/github/feature.schema.d.ts +2 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/index.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/claims/tfworkspaces/terraform.schema.d.ts +0 -1
- package/build/packages/cdk8s_renderer/src/config.d.ts +1 -0
- 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 +1 -0
- package/build/packages/cdk8s_renderer/src/loader/loader.d.ts +1 -9
- package/build/packages/cdk8s_renderer/src/renderer/renderer.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/utils/claimUtils.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/validations/crSize.d.ts +2 -0
- package/build/packages/cdk8s_renderer/src/validations/references.d.ts +0 -5
- package/build/packages/features_preparer/src/logger.d.ts +9 -0
- package/build/packages/features_renderer/index.d.ts +10 -1
- package/build/packages/features_renderer/src/auxiliar.d.ts +71 -0
- package/build/packages/features_renderer/src/render.d.ts +2 -0
- package/build/packages/github/index.d.ts +5 -0
- package/build/packages/github/src/auth.d.ts +2 -2
- package/build/packages/github/src/check_run.d.ts +83 -0
- package/build/packages/github/src/logger.d.ts +9 -0
- package/build/packages/operator/src/logger.d.ts +9 -0
- package/build/packages/operator/src/metrics/CRStates.d.ts +20 -0
- package/build/packages/operator/src/metricsServer.d.ts +1 -1
- package/build/packages/operator/src/user-feedback-ops/gh-checkrun.d.ts +5 -0
- package/build/packages/operator/src/user-feedback-ops/tf-checkrun.d.ts +5 -0
- package/build/packages/provisioner/src/cdktf.d.ts +3 -1
- package/build/packages/provisioner/src/logger.d.ts +9 -0
- package/build/packages/provisioner/src/resources/resource.d.ts +10 -0
- package/build/packages/provisioner/src/terraform.d.ts +7 -5
- package/build/packages/scaffolder/src/scaffolder.d.ts +1 -1
- package/build/packages/terraform_provisioner/index.d.ts +1 -1
- package/build/packages/terraform_provisioner/src/logger.d.ts +9 -0
- package/build/packages/terraform_provisioner/src/project_tf.d.ts +4 -0
- package/build/packages/terraform_provisioner/src/project_tf_remote.d.ts +4 -0
- package/build/packages/terraform_provisioner/src/utils.d.ts +8 -6
- package/package.json +1 -1
- package/build/packages/cdk8s_renderer/src/validations/wellKnownStructures.d.ts +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
$schema: string;
|
|
3
2
|
$id: string;
|
|
4
3
|
definitions: {
|
|
5
4
|
TFWorkspaceClaim: {
|
|
6
5
|
$id: string;
|
|
7
6
|
type: string;
|
|
8
7
|
description: string;
|
|
8
|
+
unevaluatedProperties: boolean;
|
|
9
9
|
allOf: ({
|
|
10
10
|
$ref: string;
|
|
11
11
|
type?: undefined;
|
|
12
12
|
properties?: undefined;
|
|
13
|
-
|
|
13
|
+
required?: undefined;
|
|
14
14
|
} | {
|
|
15
15
|
type: string;
|
|
16
16
|
properties: {
|
|
@@ -21,6 +21,10 @@ declare const _default: {
|
|
|
21
21
|
type: string;
|
|
22
22
|
pattern: string;
|
|
23
23
|
};
|
|
24
|
+
owner: {
|
|
25
|
+
type: string;
|
|
26
|
+
pattern: string;
|
|
27
|
+
};
|
|
24
28
|
providers: {
|
|
25
29
|
type: string;
|
|
26
30
|
properties: {
|
|
@@ -31,7 +35,7 @@ declare const _default: {
|
|
|
31
35
|
required: string[];
|
|
32
36
|
};
|
|
33
37
|
};
|
|
34
|
-
|
|
38
|
+
required: string[];
|
|
35
39
|
$ref?: undefined;
|
|
36
40
|
})[];
|
|
37
41
|
};
|
|
@@ -6,11 +6,11 @@ declare const _default: {
|
|
|
6
6
|
$id: string;
|
|
7
7
|
type: string;
|
|
8
8
|
description: string;
|
|
9
|
+
unevaluatedProperties: boolean;
|
|
9
10
|
allOf: ({
|
|
10
11
|
$ref: string;
|
|
11
12
|
type?: undefined;
|
|
12
13
|
properties?: undefined;
|
|
13
|
-
additionalProperties?: undefined;
|
|
14
14
|
} | {
|
|
15
15
|
type: string;
|
|
16
16
|
properties: {
|
|
@@ -23,7 +23,6 @@ declare const _default: {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
additionalProperties: boolean;
|
|
27
26
|
$ref?: undefined;
|
|
28
27
|
})[];
|
|
29
28
|
};
|
|
@@ -5,6 +5,7 @@ declare const _default: {
|
|
|
5
5
|
GithubComponentFeatureClaim: {
|
|
6
6
|
$id: string;
|
|
7
7
|
description: string;
|
|
8
|
+
type: string;
|
|
8
9
|
properties: {
|
|
9
10
|
name: {
|
|
10
11
|
type: string;
|
|
@@ -32,6 +33,7 @@ declare const _default: {
|
|
|
32
33
|
};
|
|
33
34
|
required: string[];
|
|
34
35
|
oneOf: {
|
|
36
|
+
type: string;
|
|
35
37
|
required: string[];
|
|
36
38
|
not: {
|
|
37
39
|
required: string[];
|
|
@@ -66,6 +66,7 @@ export declare const GithubSchemas: ({
|
|
|
66
66
|
GithubComponentFeatureClaim: {
|
|
67
67
|
$id: string;
|
|
68
68
|
description: string;
|
|
69
|
+
type: string;
|
|
69
70
|
properties: {
|
|
70
71
|
name: {
|
|
71
72
|
type: string;
|
|
@@ -93,6 +94,7 @@ export declare const GithubSchemas: ({
|
|
|
93
94
|
};
|
|
94
95
|
required: string[];
|
|
95
96
|
oneOf: {
|
|
97
|
+
type: string;
|
|
96
98
|
required: string[];
|
|
97
99
|
not: {
|
|
98
100
|
required: string[];
|
|
@@ -109,6 +111,7 @@ export declare const GithubSchemas: ({
|
|
|
109
111
|
$id: string;
|
|
110
112
|
type: string;
|
|
111
113
|
description: string;
|
|
114
|
+
unevaluatedProperties: boolean;
|
|
112
115
|
allOf: ({
|
|
113
116
|
$ref: string;
|
|
114
117
|
type?: undefined;
|
|
@@ -15,5 +15,6 @@ 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;
|
|
18
19
|
export declare function getSelectedKindClaimCrMap(provider?: string): any;
|
|
19
20
|
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<boolean>;
|
|
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<boolean>;
|
|
8
8
|
__patches(claim: any, previousCR: any): Promise<ICustomResourcePatch[]>;
|
|
9
9
|
}
|
|
@@ -3,3 +3,4 @@ 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,8 +4,6 @@ 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[]>;
|
|
9
7
|
export declare function loadGlobals(claim: any): Promise<GlobalSection[]>;
|
|
10
8
|
export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
11
9
|
/**
|
|
@@ -15,7 +13,6 @@ export declare function loadOverrides(claim: any): OverriderPatches[];
|
|
|
15
13
|
*/
|
|
16
14
|
export declare function loadNormalizers(_claim: any, path?: string): Promise<Normalizer[]>;
|
|
17
15
|
export declare function loadInitializers(claim: any, initializersPath?: string): Promise<InitializerPatches[]>;
|
|
18
|
-
export declare function loadClaims(claimsPath?: string): Promise<RenderClaims>;
|
|
19
16
|
export declare function loadClaimDefaults(): any;
|
|
20
17
|
export declare function patchClaim(claim: any, defaultsClaims: any): any;
|
|
21
18
|
export declare function loadCRs(crsPath?: string, excludedPaths?: string[], allowedClaimReferences?: string[]): Promise<any>;
|
|
@@ -34,12 +31,7 @@ export interface RenderData {
|
|
|
34
31
|
renames?: any;
|
|
35
32
|
crs?: any;
|
|
36
33
|
}
|
|
37
|
-
export declare function
|
|
38
|
-
renderClaims: RenderClaims;
|
|
39
|
-
crs: any;
|
|
40
|
-
renames?: IRenameResult[];
|
|
41
|
-
}>;
|
|
42
|
-
export declare function loadClaimsList(claimRefList: string[], claimsPath?: string): Promise<{
|
|
34
|
+
export declare function loadClaimsList(claimRefList: AsyncGenerator<string, void, unknown>, claimsPath?: string): Promise<{
|
|
43
35
|
renderClaims: RenderClaims;
|
|
44
36
|
crs: any;
|
|
45
37
|
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: AsyncGenerator<string, void, unknown>): Promise<RenderedCrMap>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export declare function resolveStringReference(reference: string): any;
|
|
2
|
+
export declare function claimsRefListAsGenerator(refs: string[]): AsyncGenerator<string, void, unknown>;
|
|
2
3
|
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,7 +1,2 @@
|
|
|
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;
|
|
6
1
|
export declare function validateTfStateKeyUniqueness(crs: any): void;
|
|
7
2
|
export declare function isCatalogEntity(cr: any): boolean;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import validate from './src/validate';
|
|
2
|
-
import render from './src/render';
|
|
2
|
+
import render, { buildContext, renderContent } from './src/render';
|
|
3
3
|
import updateFileContent from './src/update_file';
|
|
4
4
|
declare const _default: {
|
|
5
5
|
validate: typeof validate;
|
|
6
6
|
render: typeof render;
|
|
7
7
|
updateFileContent: typeof updateFileContent;
|
|
8
|
+
auxiliar: {
|
|
9
|
+
mkNamedTmp: (...names: string[]) => Promise<string>;
|
|
10
|
+
loadYaml: <T = unknown>(file: string) => T;
|
|
11
|
+
buildExpectedOutput: (config: import("./src/auxiliar").FeatureConfig, renderDir: string) => import("./src/auxiliar").ExpectedOutput;
|
|
12
|
+
loadAndValidateRenderTests: (featurePath: string) => import("./src/auxiliar").RenderTestsFile;
|
|
13
|
+
resolveCrPath: (featurePath: string, crRelPath: string) => string;
|
|
14
|
+
};
|
|
15
|
+
buildContext: typeof buildContext;
|
|
16
|
+
renderContent: typeof renderContent;
|
|
8
17
|
};
|
|
9
18
|
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
4
|
+
export interface ConfigFile {
|
|
5
|
+
dest: string;
|
|
6
|
+
src: string;
|
|
7
|
+
user_managed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface FeatureConfig {
|
|
10
|
+
files?: ConfigFile[];
|
|
11
|
+
patches?: unknown[];
|
|
12
|
+
}
|
|
13
|
+
export interface ExpectedFile {
|
|
14
|
+
localPath: string;
|
|
15
|
+
repoPath: string;
|
|
16
|
+
userManaged: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface ExpectedOutput {
|
|
19
|
+
files: ExpectedFile[];
|
|
20
|
+
patches: unknown[];
|
|
21
|
+
}
|
|
22
|
+
export interface RenderTest {
|
|
23
|
+
name: string;
|
|
24
|
+
cr: string;
|
|
25
|
+
args?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface RenderTestsFile {
|
|
28
|
+
tests: RenderTest[];
|
|
29
|
+
}
|
|
30
|
+
export interface RenderContext {
|
|
31
|
+
/** Absolute path to the temp dir */
|
|
32
|
+
getContextPath: () => string;
|
|
33
|
+
/** Join a relative path inside the temp dir */
|
|
34
|
+
join: (...p: string[]) => string;
|
|
35
|
+
/** Read a file (raw / JSON / YAML) from the temp dir */
|
|
36
|
+
getFile: <T = unknown>(relPath: string, opts?: {
|
|
37
|
+
yaml?: boolean;
|
|
38
|
+
json?: boolean;
|
|
39
|
+
}) => Promise<T | string>;
|
|
40
|
+
/** Absolute path of a file in the temp dir (no existence check) */
|
|
41
|
+
getFilePath: (relPath: string) => string;
|
|
42
|
+
/** Write a file (ensures parent dirs) */
|
|
43
|
+
setFile: (relPath: string, contents: string | Buffer | NodeJS.ArrayBufferView) => Promise<void>;
|
|
44
|
+
/** Whether a path exists in the temp dir */
|
|
45
|
+
exists: (relPath: string) => Promise<boolean>;
|
|
46
|
+
/** Convenience: read output.json from the temp dir */
|
|
47
|
+
getOutputJson: <T = unknown>() => Promise<T>;
|
|
48
|
+
/** List entries (name + isDir) in a subdirectory */
|
|
49
|
+
list: (relPath?: string) => Promise<Array<{
|
|
50
|
+
name: string;
|
|
51
|
+
isDir: boolean;
|
|
52
|
+
}>>;
|
|
53
|
+
/** Optional cleanup */
|
|
54
|
+
remove: () => Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
declare function loadAndValidateRenderTests(featurePath: string): RenderTestsFile;
|
|
57
|
+
declare function resolveCrPath(featurePath: string, crRelPath: string): string;
|
|
58
|
+
export declare function listYamlFiles(dir: string): string[];
|
|
59
|
+
declare function loadYaml<T = unknown>(file: string): T;
|
|
60
|
+
declare function mkNamedTmp(...names: string[]): Promise<string>;
|
|
61
|
+
export declare function mkTmp(prefix?: string): Promise<string>;
|
|
62
|
+
declare function buildExpectedOutput(config: FeatureConfig, renderDir: string): ExpectedOutput;
|
|
63
|
+
export declare function createRenderContext(prefix?: string): Promise<RenderContext>;
|
|
64
|
+
declare const _default: {
|
|
65
|
+
mkNamedTmp: typeof mkNamedTmp;
|
|
66
|
+
loadYaml: typeof loadYaml;
|
|
67
|
+
buildExpectedOutput: typeof buildExpectedOutput;
|
|
68
|
+
loadAndValidateRenderTests: typeof loadAndValidateRenderTests;
|
|
69
|
+
resolveCrPath: typeof resolveCrPath;
|
|
70
|
+
};
|
|
71
|
+
export default _default;
|
|
@@ -1 +1,3 @@
|
|
|
1
1
|
export default function render(featurePath: string, featureRenderPath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any;
|
|
2
|
+
export declare function buildContext(entity: any, args: any, firestartrConfig: any, featureArgs: any): any;
|
|
3
|
+
export declare function renderContent(template: string, ctx: any): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createCheckRun } from './src/check_run';
|
|
1
2
|
import { getOctokitForOrg, getGithubAppToken, getOctokitFromPat } from './src/auth';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
org: {
|
|
@@ -72,5 +73,9 @@ declare const _default: {
|
|
|
72
73
|
createBranch: typeof import("./src/branches").createBranch;
|
|
73
74
|
createOrphanBranch: typeof import("./src/branches").createOrphanBranch;
|
|
74
75
|
};
|
|
76
|
+
feedback: {
|
|
77
|
+
createCheckRun: typeof createCheckRun;
|
|
78
|
+
CheckRun: typeof import("./src/check_run").GithubCheckRun;
|
|
79
|
+
};
|
|
75
80
|
};
|
|
76
81
|
export default _default;
|
|
@@ -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;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { Octokit } from '@octokit/rest';
|
|
2
|
+
export type CheckRunStatus = 'queued' | 'in_progress' | 'completed';
|
|
3
|
+
export type CheckRunConclusion = 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'skipped';
|
|
4
|
+
export interface GithubCheckRunParams {
|
|
5
|
+
owner: string;
|
|
6
|
+
repo: string;
|
|
7
|
+
headSHA: string;
|
|
8
|
+
name: string;
|
|
9
|
+
detailsUrl?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
summary?: string;
|
|
12
|
+
pullNumber?: number;
|
|
13
|
+
includeCheckRunComment?: boolean;
|
|
14
|
+
checkRunComment?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class GithubCheckRun {
|
|
17
|
+
private readonly octokit;
|
|
18
|
+
private readonly owner;
|
|
19
|
+
private readonly repo;
|
|
20
|
+
private readonly headSHA;
|
|
21
|
+
private readonly name;
|
|
22
|
+
private readonly detailsUrl?;
|
|
23
|
+
private readonly title;
|
|
24
|
+
private readonly pullNumber?;
|
|
25
|
+
private readonly includeCheckRunComment;
|
|
26
|
+
private readonly checkRunComment?;
|
|
27
|
+
private hasCommented;
|
|
28
|
+
private closing;
|
|
29
|
+
private closed;
|
|
30
|
+
private buffer;
|
|
31
|
+
private checkRunId?;
|
|
32
|
+
private lastStatus;
|
|
33
|
+
private detailsFormatter;
|
|
34
|
+
private _summaryOverride?;
|
|
35
|
+
constructor(octokit: Octokit, params: GithubCheckRunParams);
|
|
36
|
+
/**
|
|
37
|
+
* Configure markdown formatting for the details (output.text).
|
|
38
|
+
* Example: ch.mdOptionsDetails({ quotes: 'terraform' })
|
|
39
|
+
* Result:
|
|
40
|
+
* ```terraform
|
|
41
|
+
* <log>
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
mdOptionsDetails(opts: {
|
|
45
|
+
quotes: string;
|
|
46
|
+
}): void;
|
|
47
|
+
set summary(data: string);
|
|
48
|
+
get summary(): string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Append log text and optionally set status ('queued' | 'in_progress').
|
|
51
|
+
*/
|
|
52
|
+
update(text: string, status?: Exclude<CheckRunStatus, 'completed'>): void;
|
|
53
|
+
/**
|
|
54
|
+
* Finalize the check with a conclusion. Flushes buffered text, marks completed.
|
|
55
|
+
*/
|
|
56
|
+
close(finalText: string, ok: boolean): Promise<void>;
|
|
57
|
+
private __ensureCreated;
|
|
58
|
+
private __updateCheckRun;
|
|
59
|
+
private __buildCheckRunUrl;
|
|
60
|
+
private buildOutputTextAndSummary;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Factory: build a GithubCheckRun using an installation token for the given org.
|
|
64
|
+
*/
|
|
65
|
+
export declare function createCheckRunForOrg(org: string, owner: string, repo: string, name: string, opts?: {
|
|
66
|
+
headSHA?: string;
|
|
67
|
+
pullNumber?: number;
|
|
68
|
+
detailsUrl?: string;
|
|
69
|
+
title?: string;
|
|
70
|
+
summary?: string;
|
|
71
|
+
includeCheckRunComment?: boolean;
|
|
72
|
+
checkRunComment?: string;
|
|
73
|
+
}): Promise<GithubCheckRun>;
|
|
74
|
+
export declare function createCheckRun(owner: string, repo: string, name: string, opts?: {
|
|
75
|
+
headSHA?: string;
|
|
76
|
+
pullNumber?: number;
|
|
77
|
+
detailsUrl?: string;
|
|
78
|
+
title?: string;
|
|
79
|
+
summary?: string;
|
|
80
|
+
includeCheckRunComment?: boolean;
|
|
81
|
+
checkRunComment?: string;
|
|
82
|
+
}): Promise<GithubCheckRun>;
|
|
83
|
+
export declare const CheckRun: typeof GithubCheckRun;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function (): Promise<void>;
|
|
1
|
+
export default function (kindList: string[], namespace: string): Promise<void>;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PassThrough } from 'stream';
|
|
3
|
+
export declare function runCDKTF(entityPath: any, action: string, depsPath?: any, stream?: PassThrough): Promise<unknown>;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PassThrough } from 'stream';
|
|
1
3
|
export declare class Resource {
|
|
2
4
|
data: any;
|
|
3
5
|
output: string;
|
|
6
|
+
logStream: PassThrough;
|
|
4
7
|
logFn: Function;
|
|
8
|
+
synthStreamCallbacks: any;
|
|
9
|
+
tfStreamCallbacks: any;
|
|
5
10
|
setLogger(fn: Function): void;
|
|
11
|
+
setSynthStreamLogs(callbacks: any): void;
|
|
12
|
+
setTFStreamLogs(callbacks: any): void;
|
|
13
|
+
onSyncStreaming(): Promise<void>;
|
|
14
|
+
onTFStreaming(): Promise<void>;
|
|
15
|
+
setLogStream(fnData: Function, fnEnd: Function, reopen?: boolean): void;
|
|
6
16
|
constructor(mainCR: any, operation: string, deps?: any[]);
|
|
7
17
|
run(): Promise<void>;
|
|
8
18
|
artifact(): any;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PassThrough } from 'stream';
|
|
3
|
+
export declare function runTerraform(entity: any, command: Array<string>, stream?: PassThrough): Promise<unknown>;
|
|
4
|
+
export declare function terraformInit(entity: any, stream?: PassThrough): Promise<unknown>;
|
|
5
|
+
export declare function terraformPlan(entity: any, stream?: PassThrough): Promise<unknown>;
|
|
6
|
+
export declare function terraformApply(entity: any, isImport?: boolean, skipPlan?: boolean, stream?: PassThrough): Promise<unknown>;
|
|
7
|
+
export declare function terraformDestroy(entity: any, stream?: PassThrough): Promise<unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { TFProjectManager } from './src';
|
|
2
2
|
export declare function validateContext(context: any): void;
|
|
3
3
|
export declare function run(): Promise<void>;
|
|
4
|
-
export declare function runTerraformProvisioner(context: any, command?: string): Promise<any>;
|
|
4
|
+
export declare function runTerraformProvisioner(context: any, command?: string, streaming?: any): Promise<any>;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { WriterMainTf } from './writer_main_tf';
|
|
2
3
|
import { WriterTfVarsJson } from './writer_tfvars_json';
|
|
4
|
+
import { PassThrough } from 'stream';
|
|
3
5
|
export declare class TFProjectManager {
|
|
4
6
|
mainTfWriter: WriterMainTf;
|
|
5
7
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
6
8
|
secrets: any[];
|
|
7
9
|
projectPath: string;
|
|
8
10
|
tfOutput: any;
|
|
11
|
+
stream: PassThrough;
|
|
9
12
|
constructor(ctx: any);
|
|
13
|
+
setStreamCallbacks(fnData: Function, fnEnd: (...args: any[]) => void, reopen?: boolean): void;
|
|
10
14
|
getOutput(): any;
|
|
11
15
|
build(): Promise<void>;
|
|
12
16
|
__init(): Promise<void>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { WriterTerraform } from './writer_terraform';
|
|
2
3
|
import { WriterTfVarsJson } from './writer_tfvars_json';
|
|
4
|
+
import { PassThrough } from 'stream';
|
|
3
5
|
export declare class TFProjectManagerRemote {
|
|
4
6
|
writerTerraform: WriterTerraform;
|
|
5
7
|
tfVarsJsonWriter: WriterTfVarsJson;
|
|
@@ -7,8 +9,10 @@ export declare class TFProjectManagerRemote {
|
|
|
7
9
|
secrets: any[];
|
|
8
10
|
projectPath: string;
|
|
9
11
|
tfOutput: any;
|
|
12
|
+
stream: PassThrough;
|
|
10
13
|
constructor(ctx: any);
|
|
11
14
|
getOutput(): any;
|
|
15
|
+
setStreamCallbacks(fnData: Function, fnEnd: (...args: any[]) => void, reopen?: boolean): void;
|
|
12
16
|
build(): Promise<void>;
|
|
13
17
|
__configGit(): Promise<void>;
|
|
14
18
|
__init(): Promise<void>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { PassThrough } from 'stream';
|
|
1
3
|
export declare function validate(path: string, secrets: any[]): Promise<unknown>;
|
|
2
|
-
export declare function init(path: string, secrets: any[]): Promise<unknown>;
|
|
3
|
-
export declare function initFromModule(path: string, source: string, secrets: any[]): Promise<unknown>;
|
|
4
|
-
export declare function plan(path: string, secrets: any[], format: 'human' | 'json', args?: string[]): Promise<any>;
|
|
5
|
-
export declare function apply(path: string, secrets: any[]): Promise<unknown>;
|
|
6
|
-
export declare function destroy(path: string, secrets: any[]): Promise<unknown>;
|
|
4
|
+
export declare function init(path: string, secrets: any[], stream?: PassThrough): Promise<unknown>;
|
|
5
|
+
export declare function initFromModule(path: string, source: string, secrets: any[], stream?: PassThrough): Promise<unknown>;
|
|
6
|
+
export declare function plan(path: string, secrets: any[], format: 'human' | 'json', args?: string[], stream?: PassThrough): Promise<any>;
|
|
7
|
+
export declare function apply(path: string, secrets: any[], stream?: PassThrough): Promise<unknown>;
|
|
8
|
+
export declare function destroy(path: string, secrets: any[], stream?: PassThrough): Promise<unknown>;
|
|
7
9
|
export declare function output(path: string, secrets: any[]): Promise<unknown>;
|
|
8
|
-
export declare function tfExec(path: string, args: Array<string>, secrets: any[], extraArgs?: string[]): Promise<unknown>;
|
|
10
|
+
export declare function tfExec(path: string, args: Array<string>, secrets: any[], extraArgs?: string[], stream?: PassThrough): Promise<unknown>;
|
|
9
11
|
export declare function configureGit(ghToken: string): Promise<unknown>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isCollaborator(struc: any): boolean;
|