@firestartr/cli 1.52.0-snapshot-0 → 1.52.0-snapshot-2

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
@@ -364087,8 +364087,28 @@ class RepoSecretsSectionChart extends BaseGithubChart {
364087
364087
  },
364088
364088
  },
364089
364089
  };
364090
+ const annotations = this.getAnnotationsFromRepo(this.get('repoCr'), [
364091
+ 'claim-ref',
364092
+ 'revision',
364093
+ 'sync-enabled',
364094
+ 'sync-period',
364095
+ ]);
364096
+ cr.metadata.annotations = {
364097
+ ...cr.metadata.annotations,
364098
+ ...annotations,
364099
+ };
364090
364100
  return cr;
364091
364101
  }
364102
+ getAnnotationsFromRepo(repoCr, inheritedAnnotations) {
364103
+ const annotations = {};
364104
+ for (const annotation of inheritedAnnotations) {
364105
+ const fsAnnotation = `firestartr.dev/${annotation}`;
364106
+ if (fsAnnotation in repoCr.metadata.annotations) {
364107
+ annotations[fsAnnotation] = repoCr.metadata.annotations[fsAnnotation];
364108
+ }
364109
+ }
364110
+ return annotations;
364111
+ }
364092
364112
  renderSecrets(section, githubProvider) {
364093
364113
  const secrets = [];
364094
364114
  if (githubProvider?.secrets?.[section]) {
@@ -4,6 +4,7 @@ import { BaseGithubChart } from './base';
4
4
  export default class RepoSecretsSectionChart extends BaseGithubChart {
5
5
  constructor(scope: any, chartId: string, firestartrId: string | null, claim: any, patches?: any[], cr?: any);
6
6
  template(): FirestartrGithubRepositorySecretsSectionProps;
7
+ private getAnnotationsFromRepo;
7
8
  renderSecrets(section: string, githubProvider: any): any[];
8
9
  gvk(): GroupVersionKind;
9
10
  instanceApiObject(template: any): FirestartrGithubRepositorySecretsSection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.52.0-snapshot-0",
3
+ "version": "1.52.0-snapshot-2",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",