@firestartr/cli 2.6.0 → 2.7.0-snapshot-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
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,7 +280412,6 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280413
280412
|
return true;
|
|
280414
280413
|
},
|
|
280415
280414
|
apply(cr) {
|
|
280416
|
-
// set label
|
|
280417
280415
|
cr.metadata.labels = cr.metadata.labels ?? {};
|
|
280418
280416
|
cr.metadata.labels['backstage.io/kubernetes-label-selector'] =
|
|
280419
280417
|
`backstage.io/kubernetes-id=${claim.name}`;
|
|
@@ -280428,9 +280426,36 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280428
280426
|
};
|
|
280429
280427
|
},
|
|
280430
280428
|
},
|
|
280429
|
+
{
|
|
280430
|
+
validate() {
|
|
280431
|
+
return true;
|
|
280432
|
+
},
|
|
280433
|
+
apply(cr) {
|
|
280434
|
+
const org = claim.providers?.github?.org;
|
|
280435
|
+
const repoName = claim.providers?.github?.name;
|
|
280436
|
+
if (!org || !repoName)
|
|
280437
|
+
return cr;
|
|
280438
|
+
cr.metadata.annotations = cr.metadata.annotations ?? {};
|
|
280439
|
+
if (cr.metadata.annotations['github.com/project-slug'])
|
|
280440
|
+
return cr;
|
|
280441
|
+
cr.metadata.annotations['github.com/project-slug'] =
|
|
280442
|
+
`${org}/${repoName}`;
|
|
280443
|
+
return cr;
|
|
280444
|
+
},
|
|
280445
|
+
identify() {
|
|
280446
|
+
return 'initializers/BackstageInitializer';
|
|
280447
|
+
},
|
|
280448
|
+
applicable() {
|
|
280449
|
+
return {
|
|
280450
|
+
applicableProviders: ['catalog'],
|
|
280451
|
+
};
|
|
280452
|
+
},
|
|
280453
|
+
},
|
|
280431
280454
|
];
|
|
280432
280455
|
}
|
|
280433
280456
|
}
|
|
280457
|
+
BackstageInitializer.applicableKinds = ['ComponentClaim'];
|
|
280458
|
+
|
|
280434
280459
|
|
|
280435
280460
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/initializers/syncer.ts
|
|
280436
280461
|
|
|
@@ -291143,6 +291168,7 @@ class RepoGithubDecanter extends GithubDecanter {
|
|
|
291143
291168
|
defaultBranch: this.data.repoDetails.default_branch,
|
|
291144
291169
|
},
|
|
291145
291170
|
topics: this.data.repoDetails.topics,
|
|
291171
|
+
hasWiki: this.data.repoDetails.has_wiki,
|
|
291146
291172
|
},
|
|
291147
291173
|
},
|
|
291148
291174
|
path: '/providers',
|
|
@@ -299774,8 +299800,8 @@ const MODULES = {
|
|
|
299774
299800
|
},
|
|
299775
299801
|
FirestartrGithubRepository: {
|
|
299776
299802
|
module: 'git::https://github.com/prefapp/tfm.git//modules/github-repo',
|
|
299777
|
-
// github-repo-v0.
|
|
299778
|
-
ref: '
|
|
299803
|
+
// github-repo-v0.6.0
|
|
299804
|
+
ref: '7eaa88e8a55c85bc8b7270a7d72055d8a53d6df1',
|
|
299779
299805
|
},
|
|
299780
299806
|
FirestartrGithubRepositoryFeature: {
|
|
299781
299807
|
module: 'git::https://github.com/prefapp/tfm.git//modules/github-files-set',
|
|
@@ -303528,9 +303554,9 @@ const crs_analyzerSubcommand = {
|
|
|
303528
303554
|
};
|
|
303529
303555
|
|
|
303530
303556
|
;// CONCATENATED MODULE: ./package.json
|
|
303531
|
-
const package_namespaceObject = {"i8":"2.
|
|
303557
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-1"}');
|
|
303532
303558
|
;// CONCATENATED MODULE: ../../package.json
|
|
303533
|
-
const package_namespaceObject_1 = {"i8":"2.6.
|
|
303559
|
+
const package_namespaceObject_1 = {"i8":"2.6.1"};
|
|
303534
303560
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
303535
303561
|
|
|
303536
303562
|
|
|
@@ -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;
|