@firestartr/cli 1.49.0-snapshot-9 → 1.49.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 CHANGED
@@ -301959,6 +301959,7 @@ const ArgoCDSchemas = [argocd_schema];
301959
301959
  type: 'object',
301960
301960
  properties: {
301961
301961
  secretName: { type: 'string' },
301962
+ remoteRef: { type: 'string' },
301962
301963
  },
301963
301964
  required: ['secretName'],
301964
301965
  },
@@ -301966,7 +301967,7 @@ const ArgoCDSchemas = [argocd_schema];
301966
301967
  },
301967
301968
  },
301968
301969
  },
301969
- required: ['secretStore'],
301970
+ required: ['secretStore', 'externalSecrets', 'pushSecrets'],
301970
301971
  },
301971
301972
  ],
301972
301973
  },
@@ -302667,20 +302668,15 @@ function validatePermissionsUniqueness(crs) {
302667
302668
  const permissions = cr.spec.permissions;
302668
302669
  cdk8s_renderer_src_logger.debug(`Validating Permissions Uniqueness of ${crkey}`);
302669
302670
  if (permissions) {
302670
- const rolesByIdentifier = new Map();
302671
+ const seen = new Set();
302671
302672
  for (const perm of permissions) {
302672
302673
  const identifier = perm.collaborator
302673
302674
  ? perm.collaborator
302674
302675
  : `ref:${perm.ref.kind}:${perm.ref.name}`;
302675
- const role = perm.role;
302676
- if (rolesByIdentifier.has(identifier)) {
302677
- const prevRole = rolesByIdentifier.get(identifier);
302678
- if (prevRole !== role) {
302679
- throw new Error(`Conflicting permission role in FirestartrGithubRepository ${crkey}: ${identifier} has roles "${prevRole}" and "${role}".\nFull CR: ${JSON.stringify(cr, null, 2)}`);
302680
- }
302681
- continue;
302676
+ if (seen.has(identifier)) {
302677
+ throw new Error(`Duplicate permission reference found in FirestartrGithubRepository ${crkey}: ${identifier}\nFull CR: ${JSON.stringify(cr, null, 2)}`);
302682
302678
  }
302683
- rolesByIdentifier.set(identifier, role);
302679
+ seen.add(identifier);
302684
302680
  }
302685
302681
  }
302686
302682
  }
@@ -308058,12 +308054,12 @@ class SecretsChart extends BaseSecretsChart {
308058
308054
  refsData.push({
308059
308055
  secretKey: secret.secretName,
308060
308056
  remoteRef: {
308061
- key: secret.secretName,
308057
+ key: secret.remoteRef ? secret.remoteRef : secret.secretName,
308062
308058
  },
308063
308059
  });
308064
308060
  }
308065
308061
  const k8sResource = {
308066
- apiVersion: 'external-secrets.io/v1alpha1',
308062
+ apiVersion: 'external-secrets.io/v1',
308067
308063
  kind: 'ExternalSecret',
308068
308064
  metadata: {
308069
308065
  name: catalog_common.generic.normalizeName(claim.name),
@@ -308110,7 +308106,7 @@ class SecretsChart extends BaseSecretsChart {
308110
308106
  }
308111
308107
  for (const pushSecret of pushSecretsFromClaim) {
308112
308108
  const k8sResource = {
308113
- apiVersion: 'external-secrets.io/v1alpha1',
308109
+ apiVersion: 'external-secrets.io/v1',
308114
308110
  kind: 'PushSecret',
308115
308111
  metadata: {
308116
308112
  name: catalog_common.generic.normalizeName(`${pushSecret.secretName}-${claim.name}`),
@@ -932,6 +932,9 @@ declare const schemas: {
932
932
  secretName: {
933
933
  type: string;
934
934
  };
935
+ remoteRef: {
936
+ type: string;
937
+ };
935
938
  };
936
939
  required: string[];
937
940
  };
@@ -85,6 +85,9 @@ declare const _default: {
85
85
  secretName: {
86
86
  type: string;
87
87
  };
88
+ remoteRef: {
89
+ type: string;
90
+ };
88
91
  };
89
92
  required: string[];
90
93
  };
@@ -85,6 +85,9 @@ export declare const SecretsSchemas: {
85
85
  secretName: {
86
86
  type: string;
87
87
  };
88
+ remoteRef: {
89
+ type: string;
90
+ };
88
91
  };
89
92
  required: string[];
90
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.49.0-snapshot-9",
3
+ "version": "1.49.0-snapshot-11",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",