@firestartr/cli 2.7.0-snapshot-6 → 2.7.0-snapshot-7
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,10 +280412,35 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280413
280412
|
return true;
|
|
280414
280413
|
},
|
|
280415
280414
|
apply(cr) {
|
|
280416
|
-
|
|
280417
|
-
cr.metadata.
|
|
280418
|
-
|
|
280419
|
-
|
|
280415
|
+
cr.metadata.annotations = cr.metadata.annotations ?? {};
|
|
280416
|
+
cr.metadata.annotations['backstage.io/kubernetes-label-selector'] =
|
|
280417
|
+
`claim-ref=${claim.name}`;
|
|
280418
|
+
return cr;
|
|
280419
|
+
},
|
|
280420
|
+
identify() {
|
|
280421
|
+
return 'initializers/BackstageInitializer';
|
|
280422
|
+
},
|
|
280423
|
+
applicable() {
|
|
280424
|
+
return {
|
|
280425
|
+
applicableProviders: ['catalog'],
|
|
280426
|
+
};
|
|
280427
|
+
},
|
|
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'] !== undefined) {
|
|
280440
|
+
return cr;
|
|
280441
|
+
}
|
|
280442
|
+
cr.metadata.annotations['github.com/project-slug'] =
|
|
280443
|
+
`${org}/${repoName}`;
|
|
280420
280444
|
return cr;
|
|
280421
280445
|
},
|
|
280422
280446
|
identify() {
|
|
@@ -280431,6 +280455,8 @@ class BackstageInitializer extends InitializerPatches {
|
|
|
280431
280455
|
];
|
|
280432
280456
|
}
|
|
280433
280457
|
}
|
|
280458
|
+
BackstageInitializer.applicableKinds = ['ComponentClaim'];
|
|
280459
|
+
|
|
280434
280460
|
|
|
280435
280461
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/initializers/syncer.ts
|
|
280436
280462
|
|
|
@@ -303558,7 +303584,7 @@ const crs_analyzerSubcommand = {
|
|
|
303558
303584
|
};
|
|
303559
303585
|
|
|
303560
303586
|
;// CONCATENATED MODULE: ./package.json
|
|
303561
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-
|
|
303587
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-7"}');
|
|
303562
303588
|
;// CONCATENATED MODULE: ../../package.json
|
|
303563
303589
|
const package_namespaceObject_1 = {"i8":"2.6.1"};
|
|
303564
303590
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
@@ -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;
|