@firestartr/cli 2.7.0-snapshot-7 → 2.7.0-snapshot-8

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,6 +280394,7 @@ class BackstageInitializer extends InitializerPatches {
280394
280394
  return true;
280395
280395
  },
280396
280396
  apply(cr) {
280397
+ // set annotation
280397
280398
  cr.metadata.annotations = cr.metadata.annotations ?? {};
280398
280399
  cr.metadata.annotations['backstage.io/kubernetes-id'] = claim.name;
280399
280400
  return cr;
@@ -280412,35 +280413,10 @@ class BackstageInitializer extends InitializerPatches {
280412
280413
  return true;
280413
280414
  },
280414
280415
  apply(cr) {
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}`;
280416
+ // set label
280417
+ cr.metadata.labels = cr.metadata.labels ?? {};
280418
+ cr.metadata.labels['backstage.io/kubernetes-label-selector'] =
280419
+ `backstage.io/kubernetes-id=${claim.name}`;
280444
280420
  return cr;
280445
280421
  },
280446
280422
  identify() {
@@ -280455,8 +280431,6 @@ class BackstageInitializer extends InitializerPatches {
280455
280431
  ];
280456
280432
  }
280457
280433
  }
280458
- BackstageInitializer.applicableKinds = ['ComponentClaim'];
280459
-
280460
280434
 
280461
280435
  ;// CONCATENATED MODULE: ../cdk8s_renderer/src/initializers/syncer.ts
280462
280436
 
@@ -288784,6 +288758,7 @@ class GithubRepositoryChart extends BaseGithubChart {
288784
288758
  archiveOnDestroy: claim.providers.github.archiveOnDestroy,
288785
288759
  allowUpdateBranch: claim.providers.github.allowUpdateBranch,
288786
288760
  hasIssues: claim.providers.github.hasIssues,
288761
+ hasWiki: claim.providers.github.hasWiki,
288787
288762
  visibility: claim.providers.github.visibility,
288788
288763
  defaultBranch: claim.providers.github?.branchStrategy?.defaultBranch,
288789
288764
  codeowners: createCodeOwnersData(claim),
@@ -301674,7 +301649,10 @@ async function runGhProvisioner(data, opts) {
301674
301649
  let sessionId = null;
301675
301650
  let sessionProjectPath = null;
301676
301651
  gh_provisioner_src_logger.debug('[gh-provisioner] runGhProvisioner options keys:', Object.keys(opts || {}));
301677
- const tfOp = inferTFOperation(data.mainCr, opts);
301652
+ let tfOp = inferTFOperation(data.mainCr, opts);
301653
+ if (tfOp === 'nothing' && opts.debug) {
301654
+ tfOp = 'debug';
301655
+ }
301678
301656
  gh_provisioner_src_logger.info(`[gh-provisioner] Starting runGhProvisioner with tf op ${tfOp}`);
301679
301657
  sendWarnings();
301680
301658
  let entity;
@@ -301801,19 +301779,17 @@ function inferTFOperation(cr, opts) {
301801
301779
  ? 'plan'
301802
301780
  : opts.planDestroy
301803
301781
  ? 'plan-destroy'
301804
- : opts.create
301805
- ? 'apply'
301806
- : opts.update
301807
- ? 'apply'
301808
- : opts.delete
301809
- ? 'destroy'
301810
- : opts.debug
301811
- ? 'debug'
301812
- : isImport && needsReimport
301813
- ? 'import-with-reimport'
301814
- : isImport
301815
- ? 'import'
301816
- : 'nothing';
301782
+ : opts.delete
301783
+ ? 'destroy'
301784
+ : isImport || opts.import
301785
+ ? needsReimport
301786
+ ? 'import-with-reimport'
301787
+ : 'import'
301788
+ : opts.create
301789
+ ? 'apply'
301790
+ : opts.update
301791
+ ? 'apply'
301792
+ : 'nothing';
301817
301793
  //opts.import && opts.skipPlan && isImport
301818
301794
  // ? 'IMPORT_SKIP_PLAN'
301819
301795
  return operation;
@@ -303584,9 +303560,9 @@ const crs_analyzerSubcommand = {
303584
303560
  };
303585
303561
 
303586
303562
  ;// CONCATENATED MODULE: ./package.json
303587
- const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-7"}');
303563
+ const package_namespaceObject = JSON.parse('{"i8":"2.7.0-snapshot-8"}');
303588
303564
  ;// CONCATENATED MODULE: ../../package.json
303589
- const package_namespaceObject_1 = {"i8":"2.6.1"};
303565
+ const package_namespaceObject_1 = {"i8":"2.6.3"};
303590
303566
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
303591
303567
 
303592
303568
 
@@ -21,6 +21,7 @@ export interface IGithubRepositoryClaim extends IComponentClaim {
21
21
  archiveOnDestroy: boolean;
22
22
  allowUpdateBranch: boolean;
23
23
  hasIssues: boolean;
24
+ hasWiki: boolean;
24
25
  features: IClaimInstalledFeature[];
25
26
  pages: IRepositoryPage;
26
27
  branchStrategy: IComponentClaimBranchStrategy;
@@ -1,7 +1,6 @@
1
1
  import { InitializerPatches } from './base';
2
2
  export declare class BackstageInitializer extends InitializerPatches {
3
3
  applicableProviders: string[];
4
- static applicableKinds: string[];
5
4
  __validate(): Promise<boolean>;
6
5
  __patches(claim: any, _: any): Promise<{
7
6
  validate(): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.7.0-snapshot-7",
3
+ "version": "2.7.0-snapshot-8",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",