@firestartr/cli 1.49.0-snapshot-9 → 1.49.0-snapshot-10
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 +9 -13
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/external-secrets/external-secrets.schema.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/external-secrets/index.d.ts +3 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -301959,8 +301959,9 @@ const ArgoCDSchemas = [argocd_schema];
|
|
|
301959
301959
|
type: 'object',
|
|
301960
301960
|
properties: {
|
|
301961
301961
|
secretName: { type: 'string' },
|
|
301962
|
+
remoteRef: { type: 'string' },
|
|
301962
301963
|
},
|
|
301963
|
-
required: ['secretName'],
|
|
301964
|
+
required: ['secretName', 'remoteRef'],
|
|
301964
301965
|
},
|
|
301965
301966
|
},
|
|
301966
301967
|
},
|
|
@@ -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
|
|
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
|
-
|
|
302676
|
-
|
|
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
|
-
|
|
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.
|
|
308057
|
+
key: secret.remoteRef,
|
|
308062
308058
|
},
|
|
308063
308059
|
});
|
|
308064
308060
|
}
|
|
308065
308061
|
const k8sResource = {
|
|
308066
|
-
apiVersion: 'external-secrets.io/
|
|
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/
|
|
308109
|
+
apiVersion: 'external-secrets.io/v1',
|
|
308114
308110
|
kind: 'PushSecret',
|
|
308115
308111
|
metadata: {
|
|
308116
308112
|
name: catalog_common.generic.normalizeName(`${pushSecret.secretName}-${claim.name}`),
|