@firestartr/cli 1.49.0-snapshot-1 → 1.49.0-snapshot-3
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 +129 -9
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +100 -0
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +6 -0
- package/build/packages/cdk8s_renderer/src/claims/github/component.secrets-vars.schema.d.ts +96 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +100 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -289019,15 +289019,22 @@ function initLogger() {
|
|
|
289019
289019
|
const logLevel = process.env.LOG_LEVEL && isValidLogLevel(process.env.LOG_LEVEL)
|
|
289020
289020
|
? process.env.LOG_LEVEL
|
|
289021
289021
|
: 'info';
|
|
289022
|
+
const useJson = String(process.env.CI).toLowerCase() !== 'true';
|
|
289023
|
+
const humanFormat = winston.format.printf(({ level, message }) => {
|
|
289024
|
+
const msg = typeof message === 'string' ? message : JSON.stringify(message);
|
|
289025
|
+
if (level === 'error')
|
|
289026
|
+
return `::error::${msg}`;
|
|
289027
|
+
if (level === 'warn')
|
|
289028
|
+
return `::warning::${msg}`;
|
|
289029
|
+
return `[${level}]: ${msg}`;
|
|
289030
|
+
});
|
|
289022
289031
|
logger = winston_default().createLogger({
|
|
289023
289032
|
level: logLevel,
|
|
289024
289033
|
exitOnError: false,
|
|
289025
|
-
format:
|
|
289026
|
-
|
|
289027
|
-
|
|
289028
|
-
|
|
289029
|
-
}),
|
|
289030
|
-
],
|
|
289034
|
+
format: useJson
|
|
289035
|
+
? winston.format.combine(winston.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston.format.json())
|
|
289036
|
+
: winston.format.combine(winston.format.colorize(), humanFormat),
|
|
289037
|
+
transports: [new winston.transports.Console({ level: logLevel })],
|
|
289031
289038
|
});
|
|
289032
289039
|
initiated = true;
|
|
289033
289040
|
}
|
|
@@ -301373,6 +301380,12 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
301373
301380
|
$ref: 'firestartr.dev://github/GithubComponentFeatureClaim',
|
|
301374
301381
|
},
|
|
301375
301382
|
},
|
|
301383
|
+
vars: {
|
|
301384
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimVars',
|
|
301385
|
+
},
|
|
301386
|
+
secrets: {
|
|
301387
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimSecrets',
|
|
301388
|
+
},
|
|
301376
301389
|
},
|
|
301377
301390
|
required: ['visibility', 'org'],
|
|
301378
301391
|
},
|
|
@@ -301479,18 +301492,118 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
301479
301492
|
},
|
|
301480
301493
|
});
|
|
301481
301494
|
|
|
301495
|
+
;// CONCATENATED MODULE: ../cdk8s_renderer/src/claims/github/component.secrets-vars.schema.ts
|
|
301496
|
+
|
|
301497
|
+
/* harmony default export */ const component_secrets_vars_schema = ({
|
|
301498
|
+
$schema: SCHEMA,
|
|
301499
|
+
$id: 'GithubComponentClaimVarsAndSecrets',
|
|
301500
|
+
definitions: {
|
|
301501
|
+
GithubComponentClaimVars: {
|
|
301502
|
+
$id: 'firestartr.dev://github/GithubComponentClaimVars',
|
|
301503
|
+
type: 'object',
|
|
301504
|
+
properties: {
|
|
301505
|
+
actions: {
|
|
301506
|
+
type: 'array',
|
|
301507
|
+
items: {
|
|
301508
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimRepoVar',
|
|
301509
|
+
},
|
|
301510
|
+
},
|
|
301511
|
+
codespaces: {
|
|
301512
|
+
type: 'array',
|
|
301513
|
+
items: {
|
|
301514
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimRepoVar',
|
|
301515
|
+
},
|
|
301516
|
+
},
|
|
301517
|
+
dependabot: {
|
|
301518
|
+
type: 'array',
|
|
301519
|
+
items: {
|
|
301520
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimRepoVar',
|
|
301521
|
+
},
|
|
301522
|
+
},
|
|
301523
|
+
},
|
|
301524
|
+
additionalProperties: false,
|
|
301525
|
+
},
|
|
301526
|
+
GithubComponentClaimSecrets: {
|
|
301527
|
+
$id: 'firestartr.dev://github/GithubComponentClaimSecrets',
|
|
301528
|
+
type: 'object',
|
|
301529
|
+
properties: {
|
|
301530
|
+
actions: {
|
|
301531
|
+
type: 'array',
|
|
301532
|
+
items: {
|
|
301533
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimRepoSecret',
|
|
301534
|
+
},
|
|
301535
|
+
},
|
|
301536
|
+
codespaces: {
|
|
301537
|
+
type: 'array',
|
|
301538
|
+
items: {
|
|
301539
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimRepoSecret',
|
|
301540
|
+
},
|
|
301541
|
+
},
|
|
301542
|
+
dependabot: {
|
|
301543
|
+
type: 'array',
|
|
301544
|
+
items: {
|
|
301545
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimRepoSecret',
|
|
301546
|
+
},
|
|
301547
|
+
},
|
|
301548
|
+
},
|
|
301549
|
+
additionalProperties: false,
|
|
301550
|
+
},
|
|
301551
|
+
GithubComponentClaimSecretRef: {
|
|
301552
|
+
$id: 'firestartr.dev://github/GithubComponentClaimSecretRef',
|
|
301553
|
+
type: 'string',
|
|
301554
|
+
description: 'the reference of the secret',
|
|
301555
|
+
pattern: '^ref:secretclaim:([a-zA-Z0-9_-]+):([a-zA-Z0-9_-]+)$',
|
|
301556
|
+
},
|
|
301557
|
+
GithubComponentClaimRepoSecret: {
|
|
301558
|
+
$id: 'firestartr.dev://github/GithubComponentClaimRepoSecret',
|
|
301559
|
+
type: 'object',
|
|
301560
|
+
description: 'A secret for a github repo',
|
|
301561
|
+
properties: {
|
|
301562
|
+
name: {
|
|
301563
|
+
type: 'string',
|
|
301564
|
+
description: 'the name of the secret',
|
|
301565
|
+
},
|
|
301566
|
+
value: {
|
|
301567
|
+
$ref: 'firestartr.dev://github/GithubComponentClaimSecretRef',
|
|
301568
|
+
},
|
|
301569
|
+
},
|
|
301570
|
+
required: ['name', 'value'],
|
|
301571
|
+
additionalProperties: false,
|
|
301572
|
+
},
|
|
301573
|
+
GithubComponentClaimRepoVar: {
|
|
301574
|
+
$id: 'firestartr.dev://github/GithubComponentClaimRepoVar',
|
|
301575
|
+
type: 'object',
|
|
301576
|
+
description: 'A var for a github repo',
|
|
301577
|
+
properties: {
|
|
301578
|
+
name: {
|
|
301579
|
+
type: 'string',
|
|
301580
|
+
description: 'the name of the var',
|
|
301581
|
+
},
|
|
301582
|
+
value: {
|
|
301583
|
+
type: 'string',
|
|
301584
|
+
description: 'the value of the var',
|
|
301585
|
+
},
|
|
301586
|
+
},
|
|
301587
|
+
required: ['name', 'value'],
|
|
301588
|
+
additionalProperties: false,
|
|
301589
|
+
},
|
|
301590
|
+
},
|
|
301591
|
+
});
|
|
301592
|
+
|
|
301482
301593
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/claims/github/index.ts
|
|
301483
301594
|
|
|
301484
301595
|
|
|
301485
301596
|
|
|
301486
301597
|
|
|
301487
301598
|
|
|
301599
|
+
|
|
301488
301600
|
const GithubSchemas = [
|
|
301489
301601
|
github_group_schema,
|
|
301490
301602
|
github_user_schema,
|
|
301491
301603
|
feature_schema,
|
|
301492
301604
|
github_component_schema,
|
|
301493
301605
|
github_orgwebhook_schema,
|
|
301606
|
+
component_secrets_vars_schema,
|
|
301494
301607
|
];
|
|
301495
301608
|
|
|
301496
301609
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/claims/tfworkspaces/terraform.schema.ts
|
|
@@ -307865,6 +307978,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
307865
307978
|
|
|
307866
307979
|
|
|
307867
307980
|
|
|
307981
|
+
|
|
307868
307982
|
/*
|
|
307869
307983
|
* Function called when rendering but not importing
|
|
307870
307984
|
*
|
|
@@ -307879,9 +307993,15 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
307879
307993
|
async function renderer_render(catalogScope, firestartrScope, claimList) {
|
|
307880
307994
|
const data = await loadClaimsList(claimList);
|
|
307881
307995
|
const result = await renderClaims(catalogScope, firestartrScope, data);
|
|
307882
|
-
|
|
307883
|
-
|
|
307884
|
-
|
|
307996
|
+
try {
|
|
307997
|
+
validateTfStateKeyUniqueness(result);
|
|
307998
|
+
validateCrSizes(result);
|
|
307999
|
+
validatePermissionsUniqueness(result);
|
|
308000
|
+
}
|
|
308001
|
+
catch (e) {
|
|
308002
|
+
cdk8s_renderer_src_logger.error(e.message);
|
|
308003
|
+
throw new Error(e.message);
|
|
308004
|
+
}
|
|
307885
308005
|
return result;
|
|
307886
308006
|
}
|
|
307887
308007
|
|
|
@@ -497,6 +497,12 @@ declare const schemas: {
|
|
|
497
497
|
$ref: string;
|
|
498
498
|
};
|
|
499
499
|
};
|
|
500
|
+
vars: {
|
|
501
|
+
$ref: string;
|
|
502
|
+
};
|
|
503
|
+
secrets: {
|
|
504
|
+
$ref: string;
|
|
505
|
+
};
|
|
500
506
|
};
|
|
501
507
|
required: string[];
|
|
502
508
|
$ref?: undefined;
|
|
@@ -555,6 +561,100 @@ declare const schemas: {
|
|
|
555
561
|
})[];
|
|
556
562
|
};
|
|
557
563
|
};
|
|
564
|
+
} | {
|
|
565
|
+
$schema: string;
|
|
566
|
+
$id: string;
|
|
567
|
+
definitions: {
|
|
568
|
+
GithubComponentClaimVars: {
|
|
569
|
+
$id: string;
|
|
570
|
+
type: string;
|
|
571
|
+
properties: {
|
|
572
|
+
actions: {
|
|
573
|
+
type: string;
|
|
574
|
+
items: {
|
|
575
|
+
$ref: string;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
codespaces: {
|
|
579
|
+
type: string;
|
|
580
|
+
items: {
|
|
581
|
+
$ref: string;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
dependabot: {
|
|
585
|
+
type: string;
|
|
586
|
+
items: {
|
|
587
|
+
$ref: string;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
additionalProperties: boolean;
|
|
592
|
+
};
|
|
593
|
+
GithubComponentClaimSecrets: {
|
|
594
|
+
$id: string;
|
|
595
|
+
type: string;
|
|
596
|
+
properties: {
|
|
597
|
+
actions: {
|
|
598
|
+
type: string;
|
|
599
|
+
items: {
|
|
600
|
+
$ref: string;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
codespaces: {
|
|
604
|
+
type: string;
|
|
605
|
+
items: {
|
|
606
|
+
$ref: string;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
dependabot: {
|
|
610
|
+
type: string;
|
|
611
|
+
items: {
|
|
612
|
+
$ref: string;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
additionalProperties: boolean;
|
|
617
|
+
};
|
|
618
|
+
GithubComponentClaimSecretRef: {
|
|
619
|
+
$id: string;
|
|
620
|
+
type: string;
|
|
621
|
+
description: string;
|
|
622
|
+
pattern: string;
|
|
623
|
+
};
|
|
624
|
+
GithubComponentClaimRepoSecret: {
|
|
625
|
+
$id: string;
|
|
626
|
+
type: string;
|
|
627
|
+
description: string;
|
|
628
|
+
properties: {
|
|
629
|
+
name: {
|
|
630
|
+
type: string;
|
|
631
|
+
description: string;
|
|
632
|
+
};
|
|
633
|
+
value: {
|
|
634
|
+
$ref: string;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
required: string[];
|
|
638
|
+
additionalProperties: boolean;
|
|
639
|
+
};
|
|
640
|
+
GithubComponentClaimRepoVar: {
|
|
641
|
+
$id: string;
|
|
642
|
+
type: string;
|
|
643
|
+
description: string;
|
|
644
|
+
properties: {
|
|
645
|
+
name: {
|
|
646
|
+
type: string;
|
|
647
|
+
description: string;
|
|
648
|
+
};
|
|
649
|
+
value: {
|
|
650
|
+
type: string;
|
|
651
|
+
description: string;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
required: string[];
|
|
655
|
+
additionalProperties: boolean;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
558
658
|
})[] | {
|
|
559
659
|
$id: string;
|
|
560
660
|
definitions: {
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
$id: string;
|
|
4
|
+
definitions: {
|
|
5
|
+
GithubComponentClaimVars: {
|
|
6
|
+
$id: string;
|
|
7
|
+
type: string;
|
|
8
|
+
properties: {
|
|
9
|
+
actions: {
|
|
10
|
+
type: string;
|
|
11
|
+
items: {
|
|
12
|
+
$ref: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
codespaces: {
|
|
16
|
+
type: string;
|
|
17
|
+
items: {
|
|
18
|
+
$ref: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
dependabot: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
$ref: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
additionalProperties: boolean;
|
|
29
|
+
};
|
|
30
|
+
GithubComponentClaimSecrets: {
|
|
31
|
+
$id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
properties: {
|
|
34
|
+
actions: {
|
|
35
|
+
type: string;
|
|
36
|
+
items: {
|
|
37
|
+
$ref: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
codespaces: {
|
|
41
|
+
type: string;
|
|
42
|
+
items: {
|
|
43
|
+
$ref: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
dependabot: {
|
|
47
|
+
type: string;
|
|
48
|
+
items: {
|
|
49
|
+
$ref: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
additionalProperties: boolean;
|
|
54
|
+
};
|
|
55
|
+
GithubComponentClaimSecretRef: {
|
|
56
|
+
$id: string;
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
pattern: string;
|
|
60
|
+
};
|
|
61
|
+
GithubComponentClaimRepoSecret: {
|
|
62
|
+
$id: string;
|
|
63
|
+
type: string;
|
|
64
|
+
description: string;
|
|
65
|
+
properties: {
|
|
66
|
+
name: {
|
|
67
|
+
type: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
value: {
|
|
71
|
+
$ref: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
required: string[];
|
|
75
|
+
additionalProperties: boolean;
|
|
76
|
+
};
|
|
77
|
+
GithubComponentClaimRepoVar: {
|
|
78
|
+
$id: string;
|
|
79
|
+
type: string;
|
|
80
|
+
description: string;
|
|
81
|
+
properties: {
|
|
82
|
+
name: {
|
|
83
|
+
type: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
value: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
required: string[];
|
|
92
|
+
additionalProperties: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export default _default;
|
|
@@ -134,6 +134,12 @@ export declare const GithubSchemas: ({
|
|
|
134
134
|
$ref: string;
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
+
vars: {
|
|
138
|
+
$ref: string;
|
|
139
|
+
};
|
|
140
|
+
secrets: {
|
|
141
|
+
$ref: string;
|
|
142
|
+
};
|
|
137
143
|
};
|
|
138
144
|
required: string[];
|
|
139
145
|
$ref?: undefined;
|
|
@@ -192,4 +198,98 @@ export declare const GithubSchemas: ({
|
|
|
192
198
|
})[];
|
|
193
199
|
};
|
|
194
200
|
};
|
|
201
|
+
} | {
|
|
202
|
+
$schema: string;
|
|
203
|
+
$id: string;
|
|
204
|
+
definitions: {
|
|
205
|
+
GithubComponentClaimVars: {
|
|
206
|
+
$id: string;
|
|
207
|
+
type: string;
|
|
208
|
+
properties: {
|
|
209
|
+
actions: {
|
|
210
|
+
type: string;
|
|
211
|
+
items: {
|
|
212
|
+
$ref: string;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
codespaces: {
|
|
216
|
+
type: string;
|
|
217
|
+
items: {
|
|
218
|
+
$ref: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
dependabot: {
|
|
222
|
+
type: string;
|
|
223
|
+
items: {
|
|
224
|
+
$ref: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
additionalProperties: boolean;
|
|
229
|
+
};
|
|
230
|
+
GithubComponentClaimSecrets: {
|
|
231
|
+
$id: string;
|
|
232
|
+
type: string;
|
|
233
|
+
properties: {
|
|
234
|
+
actions: {
|
|
235
|
+
type: string;
|
|
236
|
+
items: {
|
|
237
|
+
$ref: string;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
codespaces: {
|
|
241
|
+
type: string;
|
|
242
|
+
items: {
|
|
243
|
+
$ref: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
dependabot: {
|
|
247
|
+
type: string;
|
|
248
|
+
items: {
|
|
249
|
+
$ref: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
additionalProperties: boolean;
|
|
254
|
+
};
|
|
255
|
+
GithubComponentClaimSecretRef: {
|
|
256
|
+
$id: string;
|
|
257
|
+
type: string;
|
|
258
|
+
description: string;
|
|
259
|
+
pattern: string;
|
|
260
|
+
};
|
|
261
|
+
GithubComponentClaimRepoSecret: {
|
|
262
|
+
$id: string;
|
|
263
|
+
type: string;
|
|
264
|
+
description: string;
|
|
265
|
+
properties: {
|
|
266
|
+
name: {
|
|
267
|
+
type: string;
|
|
268
|
+
description: string;
|
|
269
|
+
};
|
|
270
|
+
value: {
|
|
271
|
+
$ref: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
required: string[];
|
|
275
|
+
additionalProperties: boolean;
|
|
276
|
+
};
|
|
277
|
+
GithubComponentClaimRepoVar: {
|
|
278
|
+
$id: string;
|
|
279
|
+
type: string;
|
|
280
|
+
description: string;
|
|
281
|
+
properties: {
|
|
282
|
+
name: {
|
|
283
|
+
type: string;
|
|
284
|
+
description: string;
|
|
285
|
+
};
|
|
286
|
+
value: {
|
|
287
|
+
type: string;
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
required: string[];
|
|
292
|
+
additionalProperties: boolean;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
195
295
|
})[];
|