@firestartr/cli 1.42.1 → 1.43.0
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 +66906 -71794
- package/build/packages/catalog_common/src/features/tarballs.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/claims/base/index.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +47 -0
- package/build/packages/cdk8s_renderer/src/claims/base/secrets.d.ts +9 -0
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +6 -0
- package/build/packages/cdk8s_renderer/src/claims/github/feature.schema.d.ts +43 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +47 -0
- package/build/packages/cdk8s_renderer/src/claims/github/repositoryFeature.d.ts +3 -1
- package/build/packages/cdk8s_renderer/src/overriders/featureOverride.d.ts +4 -1
- package/build/packages/features_preparer/index.d.ts +1 -0
- package/build/packages/features_preparer/src/index.d.ts +2 -2
- package/build/packages/features_preparer/src/installer.d.ts +3 -2
- package/build/packages/features_preparer/src/zip.d.ts +1 -0
- package/build/packages/features_renderer/src/traceability.d.ts +1 -0
- package/build/packages/github/src/branches.d.ts +4 -4
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare function
|
1
|
+
export declare function getFeatureZipDownloadPath(featureName: string, version: string): string;
|
2
2
|
export declare function removeFeatureTarball(featureName: string, version: string): void;
|
3
3
|
export declare function featureTarballExists(featureName: string, version: string): boolean;
|
4
4
|
export declare function getFeaturesExtractPath(featureName: string, version: string, options?: any): string;
|
@@ -343,6 +343,47 @@ declare const schemas: {
|
|
343
343
|
})[];
|
344
344
|
};
|
345
345
|
};
|
346
|
+
} | {
|
347
|
+
$schema: string;
|
348
|
+
$id: string;
|
349
|
+
definitions: {
|
350
|
+
GithubComponentFeatureClaim: {
|
351
|
+
$id: string;
|
352
|
+
description: string;
|
353
|
+
properties: {
|
354
|
+
name: {
|
355
|
+
type: string;
|
356
|
+
description: string;
|
357
|
+
};
|
358
|
+
version: {
|
359
|
+
type: string;
|
360
|
+
description: string;
|
361
|
+
};
|
362
|
+
ref: {
|
363
|
+
type: string;
|
364
|
+
description: string;
|
365
|
+
};
|
366
|
+
args: {
|
367
|
+
type: string;
|
368
|
+
properties: {};
|
369
|
+
additionalProperties: boolean;
|
370
|
+
};
|
371
|
+
repo: {
|
372
|
+
type: string;
|
373
|
+
description: string;
|
374
|
+
pattern: string;
|
375
|
+
};
|
376
|
+
};
|
377
|
+
required: string[];
|
378
|
+
oneOf: {
|
379
|
+
required: string[];
|
380
|
+
not: {
|
381
|
+
required: string[];
|
382
|
+
};
|
383
|
+
}[];
|
384
|
+
additionalProperties: boolean;
|
385
|
+
};
|
386
|
+
};
|
346
387
|
} | {
|
347
388
|
$schema: string;
|
348
389
|
$id: string;
|
@@ -367,6 +408,12 @@ declare const schemas: {
|
|
367
408
|
type: string;
|
368
409
|
enum: string[];
|
369
410
|
};
|
411
|
+
features: {
|
412
|
+
type: string;
|
413
|
+
items: {
|
414
|
+
$ref: string;
|
415
|
+
};
|
416
|
+
};
|
370
417
|
};
|
371
418
|
required: string[];
|
372
419
|
$ref?: undefined;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
$schema: string;
|
3
|
+
$id: string;
|
4
|
+
definitions: {
|
5
|
+
GithubComponentFeatureClaim: {
|
6
|
+
$id: string;
|
7
|
+
description: string;
|
8
|
+
properties: {
|
9
|
+
name: {
|
10
|
+
type: string;
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
version: {
|
14
|
+
type: string;
|
15
|
+
description: string;
|
16
|
+
};
|
17
|
+
ref: {
|
18
|
+
type: string;
|
19
|
+
description: string;
|
20
|
+
};
|
21
|
+
args: {
|
22
|
+
type: string;
|
23
|
+
properties: {};
|
24
|
+
additionalProperties: boolean;
|
25
|
+
};
|
26
|
+
repo: {
|
27
|
+
type: string;
|
28
|
+
description: string;
|
29
|
+
pattern: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
required: string[];
|
33
|
+
oneOf: {
|
34
|
+
required: string[];
|
35
|
+
not: {
|
36
|
+
required: string[];
|
37
|
+
};
|
38
|
+
}[];
|
39
|
+
additionalProperties: boolean;
|
40
|
+
};
|
41
|
+
};
|
42
|
+
};
|
43
|
+
export default _default;
|
@@ -59,6 +59,47 @@ export declare const GithubSchemas: ({
|
|
59
59
|
})[];
|
60
60
|
};
|
61
61
|
};
|
62
|
+
} | {
|
63
|
+
$schema: string;
|
64
|
+
$id: string;
|
65
|
+
definitions: {
|
66
|
+
GithubComponentFeatureClaim: {
|
67
|
+
$id: string;
|
68
|
+
description: string;
|
69
|
+
properties: {
|
70
|
+
name: {
|
71
|
+
type: string;
|
72
|
+
description: string;
|
73
|
+
};
|
74
|
+
version: {
|
75
|
+
type: string;
|
76
|
+
description: string;
|
77
|
+
};
|
78
|
+
ref: {
|
79
|
+
type: string;
|
80
|
+
description: string;
|
81
|
+
};
|
82
|
+
args: {
|
83
|
+
type: string;
|
84
|
+
properties: {};
|
85
|
+
additionalProperties: boolean;
|
86
|
+
};
|
87
|
+
repo: {
|
88
|
+
type: string;
|
89
|
+
description: string;
|
90
|
+
pattern: string;
|
91
|
+
};
|
92
|
+
};
|
93
|
+
required: string[];
|
94
|
+
oneOf: {
|
95
|
+
required: string[];
|
96
|
+
not: {
|
97
|
+
required: string[];
|
98
|
+
};
|
99
|
+
}[];
|
100
|
+
additionalProperties: boolean;
|
101
|
+
};
|
102
|
+
};
|
62
103
|
} | {
|
63
104
|
$schema: string;
|
64
105
|
$id: string;
|
@@ -83,6 +124,12 @@ export declare const GithubSchemas: ({
|
|
83
124
|
type: string;
|
84
125
|
enum: string[];
|
85
126
|
};
|
127
|
+
features: {
|
128
|
+
type: string;
|
129
|
+
items: {
|
130
|
+
$ref: string;
|
131
|
+
};
|
132
|
+
};
|
86
133
|
};
|
87
134
|
required: string[];
|
88
135
|
$ref?: undefined;
|
@@ -13,7 +13,9 @@ export interface IGithubRepositoryFeatureClaim extends IClaim {
|
|
13
13
|
context: any;
|
14
14
|
feature: {
|
15
15
|
name: string;
|
16
|
-
version
|
16
|
+
version?: string;
|
17
|
+
ref?: string;
|
18
|
+
repo?: string;
|
17
19
|
};
|
18
20
|
repositoryTarget: FirestartrGithubRepositoryFeatureSpecRepositoryTarget;
|
19
21
|
files: Array<IGithubRepositoryFeatureFileClaim>;
|
@@ -5,8 +5,11 @@ export declare class FeaturesOverrider extends OverriderPatches {
|
|
5
5
|
private featureVersion;
|
6
6
|
private featureConfig;
|
7
7
|
private featureArgs;
|
8
|
-
|
8
|
+
private featureRepo;
|
9
|
+
private featureRef;
|
10
|
+
constructor(featureName: string, featureVersion: string, featureConfig?: any, featureArgs?: any, featureRef?: string, featureRepo?: string);
|
9
11
|
getFeatureConfig(cr: any): any;
|
12
|
+
setUpAndRunRenderer(cr: any): any;
|
10
13
|
__validate(): Promise<boolean>;
|
11
14
|
__patches(claim: any, _previousCR: any): Promise<({
|
12
15
|
validate(_cr: any): boolean;
|
@@ -3,5 +3,6 @@ declare const _default: {
|
|
3
3
|
prepareFeature: typeof import("./src/installer").prepareFeature;
|
4
4
|
renderFeature: typeof import("./src/renderer").renderFeature;
|
5
5
|
getFeatureConfig: typeof import("./src/installer").getFeatureConfig;
|
6
|
+
getFeatureConfigFromRef: typeof import("./src/installer").getFeatureConfigFromRef;
|
6
7
|
};
|
7
8
|
export default _default;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { getFeatureConfigFromRef, getFeatureConfig, prepareFeature } from './installer';
|
2
2
|
import { renderFeature } from './renderer';
|
3
3
|
declare const _default: {
|
4
4
|
renderFeature: typeof renderFeature;
|
5
|
+
getFeatureConfigFromRef: typeof getFeatureConfigFromRef;
|
5
6
|
getFeatureConfig: typeof getFeatureConfig;
|
6
|
-
listFeatures: typeof listFeatures;
|
7
7
|
prepareFeature: typeof prepareFeature;
|
8
8
|
};
|
9
9
|
export default _default;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
export declare function
|
1
|
+
export declare function getFeatureConfigFromRef(featureName: string, featureRef: string, featureOwner: any, // -> cr
|
2
|
+
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
2
3
|
export declare function getFeatureConfig(featureName: string, version: string, featureOwner: any, // -> cr
|
3
4
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
4
5
|
export declare function prepareFeature(featureName: string, version: string, repo?: string, owner?: string): Promise<void>;
|
5
|
-
export declare function
|
6
|
+
export declare function downloadFeatureZip(repo: string, featureName: string, reference: string, owner?: string): Promise<string>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function downloadZipBall(url: string, filePath: string): Promise<void>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function addTraceability(context: any, src: string, content: string): string;
|
@@ -428,7 +428,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
428
428
|
verified_at: string;
|
429
429
|
};
|
430
430
|
};
|
431
|
-
author:
|
431
|
+
author: {
|
432
432
|
name?: string;
|
433
433
|
email?: string;
|
434
434
|
login: string;
|
@@ -451,8 +451,8 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
451
451
|
site_admin: boolean;
|
452
452
|
starred_at?: string;
|
453
453
|
user_view_type?: string;
|
454
|
-
}
|
455
|
-
committer:
|
454
|
+
} | Record<string, never>;
|
455
|
+
committer: {
|
456
456
|
name?: string;
|
457
457
|
email?: string;
|
458
458
|
login: string;
|
@@ -475,7 +475,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
475
475
|
site_admin: boolean;
|
476
476
|
starred_at?: string;
|
477
477
|
user_view_type?: string;
|
478
|
-
}
|
478
|
+
} | Record<string, never>;
|
479
479
|
parents: {
|
480
480
|
sha: string;
|
481
481
|
url: string;
|