@firestartr/cli 2.7.0-snapshot-10 → 2.7.0-snapshot-11
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 +20 -9
- package/build/packages/cdk8s_renderer/imports/firestartr.dev.d.ts +4 -0
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/github/component.schema.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/github/index.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/github/repository.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/initializers/backstage.d.ts +1 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -280394,7 +280394,6 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280394
280394
|
return true;
|
|
280395
280395
|
},
|
|
280396
280396
|
apply(cr) {
|
|
280397
|
-
// set annotation
|
|
280398
280397
|
cr.metadata.annotations = cr.metadata.annotations ?? {};
|
|
280399
280398
|
cr.metadata.annotations['backstage.io/kubernetes-id'] = claim.name;
|
|
280400
280399
|
return cr;
|
|
@@ -280413,10 +280412,16 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280413
280412
|
return true;
|
|
280414
280413
|
},
|
|
280415
280414
|
apply(cr) {
|
|
280416
|
-
|
|
280417
|
-
|
|
280418
|
-
|
|
280419
|
-
|
|
280415
|
+
const org = claim.providers?.github?.org;
|
|
280416
|
+
const repoName = claim.providers?.github?.name;
|
|
280417
|
+
if (!org || !repoName)
|
|
280418
|
+
return cr;
|
|
280419
|
+
cr.metadata.annotations = cr.metadata.annotations ?? {};
|
|
280420
|
+
if (cr.metadata.annotations['github.com/project-slug'] !== undefined) {
|
|
280421
|
+
return cr;
|
|
280422
|
+
}
|
|
280423
|
+
cr.metadata.annotations['github.com/project-slug'] =
|
|
280424
|
+
`${org}/${repoName}`;
|
|
280420
280425
|
return cr;
|
|
280421
280426
|
},
|
|
280422
280427
|
identify() {
|
|
@@ -280431,6 +280436,8 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280431
280436
|
];
|
|
280432
280437
|
}
|
|
280433
280438
|
}
|
|
280439
|
+
BackstageInitializer.applicableKinds = ['ComponentClaim'];
|
|
280440
|
+
|
|
280434
280441
|
|
|
280435
280442
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/initializers/syncer.ts
|
|
280436
280443
|
|
|
@@ -282037,6 +282044,9 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
282037
282044
|
hasWiki: {
|
|
282038
282045
|
type: 'boolean',
|
|
282039
282046
|
},
|
|
282047
|
+
hasDiscussions: {
|
|
282048
|
+
type: 'boolean',
|
|
282049
|
+
},
|
|
282040
282050
|
pages: {
|
|
282041
282051
|
type: 'object',
|
|
282042
282052
|
properties: {
|
|
@@ -286621,6 +286631,7 @@ function toJson_FirestartrGithubRepositorySpecRepo(obj) {
|
|
|
286621
286631
|
'allowUpdateBranch': obj.allowUpdateBranch,
|
|
286622
286632
|
'hasIssues': obj.hasIssues,
|
|
286623
286633
|
'hasWiki': obj.hasWiki,
|
|
286634
|
+
'hasDiscussions': obj.hasDiscussions,
|
|
286624
286635
|
'topics': obj.topics?.map(y => y),
|
|
286625
286636
|
'labels': obj.labels?.map(y => toJson_FirestartrGithubRepositorySpecRepoLabels(y)),
|
|
286626
286637
|
'visibility': obj.visibility,
|
|
@@ -288772,6 +288783,7 @@ class GithubRepositoryChart extends BaseGithubChart {
|
|
|
288772
288783
|
allowUpdateBranch: claim.providers.github.allowUpdateBranch,
|
|
288773
288784
|
hasIssues: claim.providers.github.hasIssues,
|
|
288774
288785
|
hasWiki: claim.providers.github.hasWiki,
|
|
288786
|
+
hasDiscussions: claim.providers.github.hasDiscussions,
|
|
288775
288787
|
visibility: claim.providers.github.visibility,
|
|
288776
288788
|
defaultBranch: claim.providers.github?.branchStrategy?.defaultBranch,
|
|
288777
288789
|
codeowners: createCodeOwnersData(claim),
|
|
@@ -289798,7 +289810,6 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
289798
289810
|
const postPatches = patches.filter((patch) => patch.isPostPatch);
|
|
289799
289811
|
const provider = config_getConfiguredProvider();
|
|
289800
289812
|
const loadGithub = (provider === AllowedProviders.all ||
|
|
289801
|
-
provider === AllowedProviders.catalog ||
|
|
289802
289813
|
provider === AllowedProviders.github) &&
|
|
289803
289814
|
'github' in claim.providers;
|
|
289804
289815
|
const loadCatalog = provider === AllowedProviders.all || provider === AllowedProviders.catalog;
|
|
@@ -299829,8 +299840,8 @@ const MODULES = {
|
|
|
299829
299840
|
},
|
|
299830
299841
|
FirestartrGithubRepository: {
|
|
299831
299842
|
module: 'git::https://github.com/prefapp/tfm.git//modules/github-repo',
|
|
299832
|
-
// github-repo-v0.
|
|
299833
|
-
ref: '
|
|
299843
|
+
// github-repo-v0.7.0
|
|
299844
|
+
ref: '6bdbcd9b813837bec9d1c576952bd88744508883',
|
|
299834
299845
|
},
|
|
299835
299846
|
FirestartrGithubRepositoryFeature: {
|
|
299836
299847
|
module: 'git::https://github.com/prefapp/tfm.git//modules/github-files-set',
|
|
@@ -303590,7 +303601,7 @@ const crs_analyzerSubcommand = {
|
|
|
303590
303601
|
};
|
|
303591
303602
|
|
|
303592
303603
|
;// CONCATENATED MODULE: ./package.json
|
|
303593
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-
|
|
303604
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-11"}');
|
|
303594
303605
|
;// CONCATENATED MODULE: ../../package.json
|
|
303595
303606
|
const package_namespaceObject_1 = {"i8":"2.6.4"};
|
|
303596
303607
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
@@ -1391,6 +1391,10 @@ export interface FirestartrGithubRepositorySpecRepo {
|
|
|
1391
1391
|
* @schema FirestartrGithubRepositorySpecRepo#hasWiki
|
|
1392
1392
|
*/
|
|
1393
1393
|
readonly hasWiki?: boolean;
|
|
1394
|
+
/**
|
|
1395
|
+
* @schema FirestartrGithubRepositorySpecRepo#hasDiscussions
|
|
1396
|
+
*/
|
|
1397
|
+
readonly hasDiscussions?: boolean;
|
|
1394
1398
|
/**
|
|
1395
1399
|
* @schema FirestartrGithubRepositorySpecRepo#topics
|
|
1396
1400
|
*/
|
|
@@ -22,6 +22,7 @@ export interface IGithubRepositoryClaim extends IComponentClaim {
|
|
|
22
22
|
allowUpdateBranch: boolean;
|
|
23
23
|
hasIssues: boolean;
|
|
24
24
|
hasWiki: boolean;
|
|
25
|
+
hasDiscussions: boolean;
|
|
25
26
|
features: IClaimInstalledFeature[];
|
|
26
27
|
pages: IRepositoryPage;
|
|
27
28
|
branchStrategy: IComponentClaimBranchStrategy;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InitializerPatches } from './base';
|
|
2
2
|
export declare class BackstageInitializer extends InitializerPatches {
|
|
3
3
|
applicableProviders: string[];
|
|
4
|
+
static applicableKinds: string[];
|
|
4
5
|
__validate(): Promise<boolean>;
|
|
5
6
|
__patches(claim: any, _: any): Promise<{
|
|
6
7
|
validate(): boolean;
|