@firestartr/cli 1.49.0-snapshot-12 → 1.49.0-snapshot-13
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 +182 -102
- package/build/packages/cdk8s_renderer/src/claims/base/schemas/index.d.ts +91 -71
- package/build/packages/cdk8s_renderer/src/claims/external-secrets/external-secrets.schema.d.ts +91 -71
- package/build/packages/cdk8s_renderer/src/claims/external-secrets/index.d.ts +91 -71
- package/build/packages/cdk8s_renderer/src/validations/crossReferences.d.ts +2 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -302525,95 +302525,116 @@ const ArgoCDSchemas = [argocd_schema];
|
|
|
302525
302525
|
$schema: SCHEMA,
|
|
302526
302526
|
$id: 'ExternalSecretsProvider',
|
|
302527
302527
|
definitions: {
|
|
302528
|
+
SecretStore: {
|
|
302529
|
+
$id: 'firestartr.dev://secrets/SecretStore',
|
|
302530
|
+
type: 'object',
|
|
302531
|
+
properties: {
|
|
302532
|
+
name: { type: 'string' },
|
|
302533
|
+
kind: {
|
|
302534
|
+
type: 'string',
|
|
302535
|
+
enum: ['SecretStore', 'ClusterSecretStore'],
|
|
302536
|
+
},
|
|
302537
|
+
},
|
|
302538
|
+
required: ['name'],
|
|
302539
|
+
},
|
|
302540
|
+
ExternalSecretsSection: {
|
|
302541
|
+
$id: 'firestartr.dev://secrets/ExternalSecretsSection',
|
|
302542
|
+
type: 'object',
|
|
302543
|
+
properties: {
|
|
302544
|
+
refreshInterval: { type: 'string' },
|
|
302545
|
+
secrets: {
|
|
302546
|
+
type: 'array',
|
|
302547
|
+
items: {
|
|
302548
|
+
additionalProperties: false,
|
|
302549
|
+
type: 'object',
|
|
302550
|
+
properties: {
|
|
302551
|
+
secretName: { type: 'string' },
|
|
302552
|
+
remoteRef: { type: 'string' },
|
|
302553
|
+
},
|
|
302554
|
+
required: ['secretName'],
|
|
302555
|
+
},
|
|
302556
|
+
},
|
|
302557
|
+
},
|
|
302558
|
+
},
|
|
302559
|
+
PushSecretsSection: {
|
|
302560
|
+
$id: 'firestartr.dev://secrets/PushSecretsSection',
|
|
302561
|
+
type: 'array',
|
|
302562
|
+
items: {
|
|
302563
|
+
type: 'object',
|
|
302564
|
+
properties: {
|
|
302565
|
+
data: { type: 'object' },
|
|
302566
|
+
template: { type: 'object' },
|
|
302567
|
+
secretName: { type: 'string' },
|
|
302568
|
+
refreshInterval: { type: 'string' },
|
|
302569
|
+
generator: {
|
|
302570
|
+
type: 'object',
|
|
302571
|
+
properties: {
|
|
302572
|
+
name: { type: 'string' },
|
|
302573
|
+
kind: {
|
|
302574
|
+
type: 'string',
|
|
302575
|
+
enum: [
|
|
302576
|
+
'ACRAccessToken',
|
|
302577
|
+
'ClusterGenerator',
|
|
302578
|
+
'ECRAuthorizationToken',
|
|
302579
|
+
'Fake',
|
|
302580
|
+
'GCRAccessToken',
|
|
302581
|
+
'GithubAccessToken',
|
|
302582
|
+
'QuayAccessToken',
|
|
302583
|
+
'Password',
|
|
302584
|
+
'STSSessionToken',
|
|
302585
|
+
'UUID',
|
|
302586
|
+
'VaultDynamicSecret',
|
|
302587
|
+
'Webhook',
|
|
302588
|
+
'Grafana',
|
|
302589
|
+
],
|
|
302590
|
+
},
|
|
302591
|
+
apiVersion: {
|
|
302592
|
+
type: 'string',
|
|
302593
|
+
},
|
|
302594
|
+
conversionStrategy: {
|
|
302595
|
+
type: 'string',
|
|
302596
|
+
},
|
|
302597
|
+
outputKey: {
|
|
302598
|
+
type: 'string',
|
|
302599
|
+
},
|
|
302600
|
+
},
|
|
302601
|
+
required: ['name'],
|
|
302602
|
+
},
|
|
302603
|
+
},
|
|
302604
|
+
required: ['secretName', 'generator'],
|
|
302605
|
+
},
|
|
302606
|
+
},
|
|
302528
302607
|
ExternalSecretsProvider: {
|
|
302529
302608
|
$id: 'firestartr.dev://secrets/ExternalSecretsProvider',
|
|
302530
302609
|
type: 'object',
|
|
302531
302610
|
description: 'A external secrets claim provider',
|
|
302532
302611
|
allOf: [
|
|
302612
|
+
{ $ref: 'firestartr.dev://common/ClaimProviderEnvelope' },
|
|
302533
302613
|
{
|
|
302534
|
-
|
|
302535
|
-
|
|
302536
|
-
{
|
|
302537
|
-
type: 'object',
|
|
302538
|
-
properties: {
|
|
302539
|
-
secretStore: {
|
|
302540
|
-
type: 'object',
|
|
302614
|
+
anyOf: [
|
|
302615
|
+
{
|
|
302541
302616
|
properties: {
|
|
302542
|
-
|
|
302543
|
-
|
|
302544
|
-
type: 'string',
|
|
302545
|
-
enum: ['SecretStore', 'ClusterSecretStore'],
|
|
302617
|
+
externalSecrets: {
|
|
302618
|
+
$ref: 'firestartr.dev://secrets/ExternalSecretsSection',
|
|
302546
302619
|
},
|
|
302547
|
-
|
|
302548
|
-
|
|
302549
|
-
},
|
|
302550
|
-
pushSecrets: {
|
|
302551
|
-
type: 'array',
|
|
302552
|
-
items: {
|
|
302553
|
-
type: 'object',
|
|
302554
|
-
properties: {
|
|
302555
|
-
data: { type: 'object' },
|
|
302556
|
-
template: { type: 'object' },
|
|
302557
|
-
secretName: { type: 'string' },
|
|
302558
|
-
refreshInterval: { type: 'string' },
|
|
302559
|
-
generator: {
|
|
302560
|
-
type: 'object',
|
|
302561
|
-
properties: {
|
|
302562
|
-
name: { type: 'string' },
|
|
302563
|
-
kind: {
|
|
302564
|
-
type: 'string',
|
|
302565
|
-
enum: [
|
|
302566
|
-
'ACRAccessToken',
|
|
302567
|
-
'ClusterGenerator',
|
|
302568
|
-
'ECRAuthorizationToken',
|
|
302569
|
-
'Fake',
|
|
302570
|
-
'GCRAccessToken',
|
|
302571
|
-
'GithubAccessToken',
|
|
302572
|
-
'QuayAccessToken',
|
|
302573
|
-
'Password',
|
|
302574
|
-
'STSSessionToken',
|
|
302575
|
-
'UUID',
|
|
302576
|
-
'VaultDynamicSecret',
|
|
302577
|
-
'Webhook',
|
|
302578
|
-
'Grafana',
|
|
302579
|
-
],
|
|
302580
|
-
},
|
|
302581
|
-
apiVersion: {
|
|
302582
|
-
type: 'string',
|
|
302583
|
-
},
|
|
302584
|
-
conversionStrategy: {
|
|
302585
|
-
type: 'string',
|
|
302586
|
-
},
|
|
302587
|
-
outputKey: {
|
|
302588
|
-
type: 'string',
|
|
302589
|
-
},
|
|
302590
|
-
},
|
|
302591
|
-
required: ['name'],
|
|
302592
|
-
},
|
|
302620
|
+
secretStore: {
|
|
302621
|
+
$ref: 'firestartr.dev://secrets/SecretStore',
|
|
302593
302622
|
},
|
|
302594
|
-
required: ['secretName', 'generator'],
|
|
302595
302623
|
},
|
|
302624
|
+
required: ['secretStore', 'externalSecrets'],
|
|
302596
302625
|
},
|
|
302597
|
-
|
|
302598
|
-
type: 'object',
|
|
302626
|
+
{
|
|
302599
302627
|
properties: {
|
|
302600
|
-
|
|
302601
|
-
|
|
302602
|
-
|
|
302603
|
-
|
|
302604
|
-
|
|
302605
|
-
type: 'object',
|
|
302606
|
-
properties: {
|
|
302607
|
-
secretName: { type: 'string' },
|
|
302608
|
-
remoteRef: { type: 'string' },
|
|
302609
|
-
},
|
|
302610
|
-
required: ['secretName'],
|
|
302611
|
-
},
|
|
302628
|
+
pushSecrets: {
|
|
302629
|
+
$ref: 'firestartr.dev://secrets/PushSecretsSection',
|
|
302630
|
+
},
|
|
302631
|
+
secretStore: {
|
|
302632
|
+
$ref: 'firestartr.dev://secrets/SecretStore',
|
|
302612
302633
|
},
|
|
302613
302634
|
},
|
|
302635
|
+
required: ['secretStore', 'pushSecrets'],
|
|
302614
302636
|
},
|
|
302615
|
-
|
|
302616
|
-
required: ['secretStore', 'externalSecrets', 'pushSecrets'],
|
|
302637
|
+
],
|
|
302617
302638
|
},
|
|
302618
302639
|
],
|
|
302619
302640
|
},
|
|
@@ -308599,8 +308620,8 @@ class SecretsChart extends BaseSecretsChart {
|
|
|
308599
308620
|
};
|
|
308600
308621
|
}
|
|
308601
308622
|
extraCharts() {
|
|
308602
|
-
const externalSecrets = this.get('
|
|
308603
|
-
const pushSecrets = this.get('
|
|
308623
|
+
const externalSecrets = this.get('externalSecrets');
|
|
308624
|
+
const pushSecrets = this.get('pushSecrets');
|
|
308604
308625
|
const kind = this.get('claim').kind;
|
|
308605
308626
|
const name = this.get('claim').name;
|
|
308606
308627
|
const concatenated = externalSecrets
|
|
@@ -308943,6 +308964,52 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
308943
308964
|
};
|
|
308944
308965
|
}
|
|
308945
308966
|
|
|
308967
|
+
;// CONCATENATED MODULE: ../cdk8s_renderer/src/validations/crossReferences.ts
|
|
308968
|
+
const IS_COMPONENT_CLAIM_REF = new RegExp(/^ComponentClaim-/);
|
|
308969
|
+
function validateSubReferences(renderClaims) {
|
|
308970
|
+
for (const ref of Object.keys(renderClaims)) {
|
|
308971
|
+
if (IS_COMPONENT_CLAIM_REF.test(ref))
|
|
308972
|
+
validateClaimsSecretsRefs(ref, renderClaims);
|
|
308973
|
+
}
|
|
308974
|
+
}
|
|
308975
|
+
function validateClaimsSecretsRefs(ref, renderClaims) {
|
|
308976
|
+
const claim = renderClaims[ref].claim;
|
|
308977
|
+
const secrets = claim.providers.github.secrets;
|
|
308978
|
+
if (!secrets) {
|
|
308979
|
+
return;
|
|
308980
|
+
}
|
|
308981
|
+
for (const section of ['actions', 'codespaces', 'copilot']) {
|
|
308982
|
+
const secretsSection = secrets[section];
|
|
308983
|
+
if (!secretsSection) {
|
|
308984
|
+
continue;
|
|
308985
|
+
}
|
|
308986
|
+
for (const secret of secretsSection) {
|
|
308987
|
+
const [secretName, key] = secret.value.split(':').slice(2);
|
|
308988
|
+
const keyFound = searchSecretKey(renderClaims[`SecretsClaim-${secretName}`].claim, key);
|
|
308989
|
+
if (!keyFound) {
|
|
308990
|
+
throw new Error(`CrossReference error: ComponentClaim/${claim.name} references a secret key inexistent: '${secretName}/${key}'`);
|
|
308991
|
+
}
|
|
308992
|
+
}
|
|
308993
|
+
}
|
|
308994
|
+
}
|
|
308995
|
+
function searchSecretKey(secretClaim, key) {
|
|
308996
|
+
let found = false;
|
|
308997
|
+
if ('pushSecrets' in secretClaim.providers['external_secrets']) {
|
|
308998
|
+
found =
|
|
308999
|
+
secretClaim.providers['external_secrets'].pushSecrets.find((secret) => {
|
|
309000
|
+
return secret.secretName === key;
|
|
309001
|
+
}) !== undefined;
|
|
309002
|
+
}
|
|
309003
|
+
if (!found &&
|
|
309004
|
+
'externalSecrets' in secretClaim.providers['external_secrets']) {
|
|
309005
|
+
found =
|
|
309006
|
+
secretClaim.providers['external_secrets'].externalSecrets.secrets.find((secret) => {
|
|
309007
|
+
return secret.secretName === key;
|
|
309008
|
+
}) !== undefined;
|
|
309009
|
+
}
|
|
309010
|
+
return found;
|
|
309011
|
+
}
|
|
309012
|
+
|
|
308946
309013
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/renderer/renderer.ts
|
|
308947
309014
|
|
|
308948
309015
|
|
|
@@ -308950,6 +309017,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
308950
309017
|
|
|
308951
309018
|
|
|
308952
309019
|
|
|
309020
|
+
|
|
308953
309021
|
/*
|
|
308954
309022
|
* Function called when rendering but not importing
|
|
308955
309023
|
*
|
|
@@ -308965,6 +309033,7 @@ async function renderer_render(catalogScope, firestartrScope, claimList) {
|
|
|
308965
309033
|
const data = await loadClaimsList(claimList);
|
|
308966
309034
|
const result = await renderClaims(catalogScope, firestartrScope, data);
|
|
308967
309035
|
try {
|
|
309036
|
+
validateSubReferences(data.renderClaims);
|
|
308968
309037
|
validateTfStateKeyUniqueness(result);
|
|
308969
309038
|
validateCrSizes(result);
|
|
308970
309039
|
validatePermissionsUniqueness(result);
|
|
@@ -314273,7 +314342,7 @@ ${commentContent}
|
|
|
314273
314342
|
}
|
|
314274
314343
|
}
|
|
314275
314344
|
catch (e) {
|
|
314276
|
-
operator_src_logger.error(`An error occurred while publishing user feedback for item '${item.kind}/${item.metadata.name}'
|
|
314345
|
+
operator_src_logger.error(`An error occurred while publishing user feedback for item '${item.kind}/${item.metadata.name}': '${e}'.`);
|
|
314277
314346
|
}
|
|
314278
314347
|
}
|
|
314279
314348
|
async function publishApply(item, applyOutput, kind) {
|
|
@@ -315715,38 +315784,48 @@ async function* errorPolicyCompatibility(syncPolicy, generalPolicy, item, op) {
|
|
|
315715
315784
|
|
|
315716
315785
|
;// CONCATENATED MODULE: ../operator/src/user-feedback-ops/tf-checkrun.ts
|
|
315717
315786
|
|
|
315787
|
+
|
|
315718
315788
|
async function TFCheckRun(cmd, item) {
|
|
315719
|
-
|
|
315720
|
-
|
|
315721
|
-
|
|
315789
|
+
try {
|
|
315790
|
+
const prInfo = tf_checkrun_extractPrInfo(item);
|
|
315791
|
+
const checkRun = await github_0.feedback.createCheckRun(prInfo.org, prInfo.repo, tf_checkrun_helperCreateCheckRunName(cmd), {
|
|
315792
|
+
pullNumber: Number(prInfo.prNumber),
|
|
315793
|
+
includeCheckRunComment: true,
|
|
315794
|
+
checkRunComment: `The TFWorkspace is being processed (cmd=${cmd}). Details: `,
|
|
315795
|
+
});
|
|
315796
|
+
checkRun.mdOptionsDetails({
|
|
315797
|
+
quotes: 'terraform',
|
|
315798
|
+
});
|
|
315799
|
+
checkRun.update('Initiating', 'queued');
|
|
315800
|
+
return {
|
|
315801
|
+
fnData: (d) => {
|
|
315802
|
+
checkRun.update(d.toString(), 'in_progress');
|
|
315803
|
+
},
|
|
315804
|
+
fnEnd: () => {
|
|
315805
|
+
checkRun.close('OK', true);
|
|
315806
|
+
},
|
|
315807
|
+
fnOnError: (err) => {
|
|
315808
|
+
checkRun.close('KO', false);
|
|
315809
|
+
},
|
|
315810
|
+
};
|
|
315811
|
+
}
|
|
315812
|
+
catch (e) {
|
|
315813
|
+
// log error and return empty fns
|
|
315814
|
+
logger_logger.warn('Error in TFCheckRun:', e);
|
|
315815
|
+
return {
|
|
315816
|
+
fnData: (d) => { },
|
|
315817
|
+
fnEnd: () => { },
|
|
315818
|
+
fnOnError: (err) => { },
|
|
315819
|
+
};
|
|
315722
315820
|
}
|
|
315723
|
-
const checkRun = await github_0.feedback.createCheckRun(prInfo.org, prInfo.repo, tf_checkrun_helperCreateCheckRunName(cmd), {
|
|
315724
|
-
//Number(pr_number),
|
|
315725
|
-
pullNumber: Number(prInfo.prNumber),
|
|
315726
|
-
includeCheckRunComment: true,
|
|
315727
|
-
checkRunComment: `The TFWorkspace is being processed (cmd=${cmd}). Details: `,
|
|
315728
|
-
});
|
|
315729
|
-
checkRun.mdOptionsDetails({
|
|
315730
|
-
quotes: 'terraform',
|
|
315731
|
-
});
|
|
315732
|
-
checkRun.update('Initiating', 'queued');
|
|
315733
|
-
return {
|
|
315734
|
-
fnData: (d) => {
|
|
315735
|
-
checkRun.update(d.toString(), 'in_progress');
|
|
315736
|
-
},
|
|
315737
|
-
fnEnd: () => {
|
|
315738
|
-
checkRun.close('OK', true);
|
|
315739
|
-
},
|
|
315740
|
-
fnOnError: (err) => {
|
|
315741
|
-
checkRun.close('KO', false);
|
|
315742
|
-
},
|
|
315743
|
-
};
|
|
315744
315821
|
}
|
|
315745
315822
|
function tf_checkrun_helperCreateCheckRunName(cmd) {
|
|
315746
315823
|
return `TFWorkspace - ${cmd}`;
|
|
315747
315824
|
}
|
|
315748
315825
|
function tf_checkrun_extractPrInfo(item) {
|
|
315749
315826
|
const prInfo = item.metadata.annotations['firestartr.dev/last-state-pr'];
|
|
315827
|
+
if (!prInfo)
|
|
315828
|
+
throw new Error('No firestartr.dev/last-state-pr field in CR');
|
|
315750
315829
|
const prNumber = prInfo.split('#')[1];
|
|
315751
315830
|
if (!prNumber)
|
|
315752
315831
|
throw new Error('No PR number found in CR');
|
|
@@ -317503,7 +317582,8 @@ class CRStateMetrics {
|
|
|
317503
317582
|
catch (err) {
|
|
317504
317583
|
console.log(`CRStateMetrics: update ${err}`);
|
|
317505
317584
|
this.onUpdate = false;
|
|
317506
|
-
operator_src_logger.error(
|
|
317585
|
+
operator_src_logger.error(`On update of CR metrics: ${err}`);
|
|
317586
|
+
await this.__prepareConnection();
|
|
317507
317587
|
}
|
|
317508
317588
|
this.onUpdate = false;
|
|
317509
317589
|
}
|
|
@@ -837,100 +837,120 @@ declare const schemas: {
|
|
|
837
837
|
$schema: string;
|
|
838
838
|
$id: string;
|
|
839
839
|
definitions: {
|
|
840
|
-
|
|
840
|
+
SecretStore: {
|
|
841
841
|
$id: string;
|
|
842
842
|
type: string;
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
843
|
+
properties: {
|
|
844
|
+
name: {
|
|
845
|
+
type: string;
|
|
846
|
+
};
|
|
847
|
+
kind: {
|
|
848
|
+
type: string;
|
|
849
|
+
enum: string[];
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
required: string[];
|
|
853
|
+
};
|
|
854
|
+
ExternalSecretsSection: {
|
|
855
|
+
$id: string;
|
|
856
|
+
type: string;
|
|
857
|
+
properties: {
|
|
858
|
+
refreshInterval: {
|
|
859
|
+
type: string;
|
|
860
|
+
};
|
|
861
|
+
secrets: {
|
|
862
|
+
type: string;
|
|
863
|
+
items: {
|
|
864
|
+
additionalProperties: boolean;
|
|
853
865
|
type: string;
|
|
854
866
|
properties: {
|
|
855
|
-
|
|
867
|
+
secretName: {
|
|
856
868
|
type: string;
|
|
857
869
|
};
|
|
858
|
-
|
|
870
|
+
remoteRef: {
|
|
859
871
|
type: string;
|
|
860
|
-
enum: string[];
|
|
861
872
|
};
|
|
862
873
|
};
|
|
863
874
|
required: string[];
|
|
864
875
|
};
|
|
865
|
-
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
PushSecretsSection: {
|
|
880
|
+
$id: string;
|
|
881
|
+
type: string;
|
|
882
|
+
items: {
|
|
883
|
+
type: string;
|
|
884
|
+
properties: {
|
|
885
|
+
data: {
|
|
886
|
+
type: string;
|
|
887
|
+
};
|
|
888
|
+
template: {
|
|
889
|
+
type: string;
|
|
890
|
+
};
|
|
891
|
+
secretName: {
|
|
892
|
+
type: string;
|
|
893
|
+
};
|
|
894
|
+
refreshInterval: {
|
|
866
895
|
type: string;
|
|
867
|
-
items: {
|
|
868
|
-
type: string;
|
|
869
|
-
properties: {
|
|
870
|
-
data: {
|
|
871
|
-
type: string;
|
|
872
|
-
};
|
|
873
|
-
template: {
|
|
874
|
-
type: string;
|
|
875
|
-
};
|
|
876
|
-
secretName: {
|
|
877
|
-
type: string;
|
|
878
|
-
};
|
|
879
|
-
refreshInterval: {
|
|
880
|
-
type: string;
|
|
881
|
-
};
|
|
882
|
-
generator: {
|
|
883
|
-
type: string;
|
|
884
|
-
properties: {
|
|
885
|
-
name: {
|
|
886
|
-
type: string;
|
|
887
|
-
};
|
|
888
|
-
kind: {
|
|
889
|
-
type: string;
|
|
890
|
-
enum: string[];
|
|
891
|
-
};
|
|
892
|
-
apiVersion: {
|
|
893
|
-
type: string;
|
|
894
|
-
};
|
|
895
|
-
conversionStrategy: {
|
|
896
|
-
type: string;
|
|
897
|
-
};
|
|
898
|
-
outputKey: {
|
|
899
|
-
type: string;
|
|
900
|
-
};
|
|
901
|
-
};
|
|
902
|
-
required: string[];
|
|
903
|
-
};
|
|
904
|
-
};
|
|
905
|
-
required: string[];
|
|
906
|
-
};
|
|
907
896
|
};
|
|
908
|
-
|
|
897
|
+
generator: {
|
|
909
898
|
type: string;
|
|
910
899
|
properties: {
|
|
911
|
-
|
|
900
|
+
name: {
|
|
912
901
|
type: string;
|
|
913
902
|
};
|
|
914
|
-
|
|
903
|
+
kind: {
|
|
904
|
+
type: string;
|
|
905
|
+
enum: string[];
|
|
906
|
+
};
|
|
907
|
+
apiVersion: {
|
|
908
|
+
type: string;
|
|
909
|
+
};
|
|
910
|
+
conversionStrategy: {
|
|
911
|
+
type: string;
|
|
912
|
+
};
|
|
913
|
+
outputKey: {
|
|
915
914
|
type: string;
|
|
916
|
-
items: {
|
|
917
|
-
additionalProperties: boolean;
|
|
918
|
-
type: string;
|
|
919
|
-
properties: {
|
|
920
|
-
secretName: {
|
|
921
|
-
type: string;
|
|
922
|
-
};
|
|
923
|
-
remoteRef: {
|
|
924
|
-
type: string;
|
|
925
|
-
};
|
|
926
|
-
};
|
|
927
|
-
required: string[];
|
|
928
|
-
};
|
|
929
915
|
};
|
|
930
916
|
};
|
|
917
|
+
required: string[];
|
|
931
918
|
};
|
|
932
919
|
};
|
|
933
920
|
required: string[];
|
|
921
|
+
};
|
|
922
|
+
};
|
|
923
|
+
ExternalSecretsProvider: {
|
|
924
|
+
$id: string;
|
|
925
|
+
type: string;
|
|
926
|
+
description: string;
|
|
927
|
+
allOf: ({
|
|
928
|
+
$ref: string;
|
|
929
|
+
anyOf?: undefined;
|
|
930
|
+
} | {
|
|
931
|
+
anyOf: ({
|
|
932
|
+
properties: {
|
|
933
|
+
externalSecrets: {
|
|
934
|
+
$ref: string;
|
|
935
|
+
};
|
|
936
|
+
secretStore: {
|
|
937
|
+
$ref: string;
|
|
938
|
+
};
|
|
939
|
+
pushSecrets?: undefined;
|
|
940
|
+
};
|
|
941
|
+
required: string[];
|
|
942
|
+
} | {
|
|
943
|
+
properties: {
|
|
944
|
+
pushSecrets: {
|
|
945
|
+
$ref: string;
|
|
946
|
+
};
|
|
947
|
+
secretStore: {
|
|
948
|
+
$ref: string;
|
|
949
|
+
};
|
|
950
|
+
externalSecrets?: undefined;
|
|
951
|
+
};
|
|
952
|
+
required: string[];
|
|
953
|
+
})[];
|
|
934
954
|
$ref?: undefined;
|
|
935
955
|
})[];
|
|
936
956
|
};
|
package/build/packages/cdk8s_renderer/src/claims/external-secrets/external-secrets.schema.d.ts
CHANGED
|
@@ -2,100 +2,120 @@ declare const _default: {
|
|
|
2
2
|
$schema: string;
|
|
3
3
|
$id: string;
|
|
4
4
|
definitions: {
|
|
5
|
-
|
|
5
|
+
SecretStore: {
|
|
6
6
|
$id: string;
|
|
7
7
|
type: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
properties: {
|
|
9
|
+
name: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
kind: {
|
|
13
|
+
type: string;
|
|
14
|
+
enum: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
required: string[];
|
|
18
|
+
};
|
|
19
|
+
ExternalSecretsSection: {
|
|
20
|
+
$id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
properties: {
|
|
23
|
+
refreshInterval: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
secrets: {
|
|
27
|
+
type: string;
|
|
28
|
+
items: {
|
|
29
|
+
additionalProperties: boolean;
|
|
18
30
|
type: string;
|
|
19
31
|
properties: {
|
|
20
|
-
|
|
32
|
+
secretName: {
|
|
21
33
|
type: string;
|
|
22
34
|
};
|
|
23
|
-
|
|
35
|
+
remoteRef: {
|
|
24
36
|
type: string;
|
|
25
|
-
enum: string[];
|
|
26
37
|
};
|
|
27
38
|
};
|
|
28
39
|
required: string[];
|
|
29
40
|
};
|
|
30
|
-
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
PushSecretsSection: {
|
|
45
|
+
$id: string;
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
properties: {
|
|
50
|
+
data: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
template: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
secretName: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
refreshInterval: {
|
|
31
60
|
type: string;
|
|
32
|
-
items: {
|
|
33
|
-
type: string;
|
|
34
|
-
properties: {
|
|
35
|
-
data: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
template: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
secretName: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
refreshInterval: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
generator: {
|
|
48
|
-
type: string;
|
|
49
|
-
properties: {
|
|
50
|
-
name: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
kind: {
|
|
54
|
-
type: string;
|
|
55
|
-
enum: string[];
|
|
56
|
-
};
|
|
57
|
-
apiVersion: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
conversionStrategy: {
|
|
61
|
-
type: string;
|
|
62
|
-
};
|
|
63
|
-
outputKey: {
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
required: string[];
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
required: string[];
|
|
71
|
-
};
|
|
72
61
|
};
|
|
73
|
-
|
|
62
|
+
generator: {
|
|
74
63
|
type: string;
|
|
75
64
|
properties: {
|
|
76
|
-
|
|
65
|
+
name: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
kind: {
|
|
69
|
+
type: string;
|
|
70
|
+
enum: string[];
|
|
71
|
+
};
|
|
72
|
+
apiVersion: {
|
|
77
73
|
type: string;
|
|
78
74
|
};
|
|
79
|
-
|
|
75
|
+
conversionStrategy: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
outputKey: {
|
|
80
79
|
type: string;
|
|
81
|
-
items: {
|
|
82
|
-
additionalProperties: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
properties: {
|
|
85
|
-
secretName: {
|
|
86
|
-
type: string;
|
|
87
|
-
};
|
|
88
|
-
remoteRef: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
required: string[];
|
|
93
|
-
};
|
|
94
80
|
};
|
|
95
81
|
};
|
|
82
|
+
required: string[];
|
|
96
83
|
};
|
|
97
84
|
};
|
|
98
85
|
required: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
ExternalSecretsProvider: {
|
|
89
|
+
$id: string;
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
allOf: ({
|
|
93
|
+
$ref: string;
|
|
94
|
+
anyOf?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
anyOf: ({
|
|
97
|
+
properties: {
|
|
98
|
+
externalSecrets: {
|
|
99
|
+
$ref: string;
|
|
100
|
+
};
|
|
101
|
+
secretStore: {
|
|
102
|
+
$ref: string;
|
|
103
|
+
};
|
|
104
|
+
pushSecrets?: undefined;
|
|
105
|
+
};
|
|
106
|
+
required: string[];
|
|
107
|
+
} | {
|
|
108
|
+
properties: {
|
|
109
|
+
pushSecrets: {
|
|
110
|
+
$ref: string;
|
|
111
|
+
};
|
|
112
|
+
secretStore: {
|
|
113
|
+
$ref: string;
|
|
114
|
+
};
|
|
115
|
+
externalSecrets?: undefined;
|
|
116
|
+
};
|
|
117
|
+
required: string[];
|
|
118
|
+
})[];
|
|
99
119
|
$ref?: undefined;
|
|
100
120
|
})[];
|
|
101
121
|
};
|
|
@@ -2,100 +2,120 @@ export declare const SecretsSchemas: {
|
|
|
2
2
|
$schema: string;
|
|
3
3
|
$id: string;
|
|
4
4
|
definitions: {
|
|
5
|
-
|
|
5
|
+
SecretStore: {
|
|
6
6
|
$id: string;
|
|
7
7
|
type: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
properties: {
|
|
9
|
+
name: {
|
|
10
|
+
type: string;
|
|
11
|
+
};
|
|
12
|
+
kind: {
|
|
13
|
+
type: string;
|
|
14
|
+
enum: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
required: string[];
|
|
18
|
+
};
|
|
19
|
+
ExternalSecretsSection: {
|
|
20
|
+
$id: string;
|
|
21
|
+
type: string;
|
|
22
|
+
properties: {
|
|
23
|
+
refreshInterval: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
secrets: {
|
|
27
|
+
type: string;
|
|
28
|
+
items: {
|
|
29
|
+
additionalProperties: boolean;
|
|
18
30
|
type: string;
|
|
19
31
|
properties: {
|
|
20
|
-
|
|
32
|
+
secretName: {
|
|
21
33
|
type: string;
|
|
22
34
|
};
|
|
23
|
-
|
|
35
|
+
remoteRef: {
|
|
24
36
|
type: string;
|
|
25
|
-
enum: string[];
|
|
26
37
|
};
|
|
27
38
|
};
|
|
28
39
|
required: string[];
|
|
29
40
|
};
|
|
30
|
-
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
PushSecretsSection: {
|
|
45
|
+
$id: string;
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
properties: {
|
|
50
|
+
data: {
|
|
51
|
+
type: string;
|
|
52
|
+
};
|
|
53
|
+
template: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
secretName: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
refreshInterval: {
|
|
31
60
|
type: string;
|
|
32
|
-
items: {
|
|
33
|
-
type: string;
|
|
34
|
-
properties: {
|
|
35
|
-
data: {
|
|
36
|
-
type: string;
|
|
37
|
-
};
|
|
38
|
-
template: {
|
|
39
|
-
type: string;
|
|
40
|
-
};
|
|
41
|
-
secretName: {
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
refreshInterval: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
generator: {
|
|
48
|
-
type: string;
|
|
49
|
-
properties: {
|
|
50
|
-
name: {
|
|
51
|
-
type: string;
|
|
52
|
-
};
|
|
53
|
-
kind: {
|
|
54
|
-
type: string;
|
|
55
|
-
enum: string[];
|
|
56
|
-
};
|
|
57
|
-
apiVersion: {
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
conversionStrategy: {
|
|
61
|
-
type: string;
|
|
62
|
-
};
|
|
63
|
-
outputKey: {
|
|
64
|
-
type: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
required: string[];
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
required: string[];
|
|
71
|
-
};
|
|
72
61
|
};
|
|
73
|
-
|
|
62
|
+
generator: {
|
|
74
63
|
type: string;
|
|
75
64
|
properties: {
|
|
76
|
-
|
|
65
|
+
name: {
|
|
66
|
+
type: string;
|
|
67
|
+
};
|
|
68
|
+
kind: {
|
|
69
|
+
type: string;
|
|
70
|
+
enum: string[];
|
|
71
|
+
};
|
|
72
|
+
apiVersion: {
|
|
77
73
|
type: string;
|
|
78
74
|
};
|
|
79
|
-
|
|
75
|
+
conversionStrategy: {
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
outputKey: {
|
|
80
79
|
type: string;
|
|
81
|
-
items: {
|
|
82
|
-
additionalProperties: boolean;
|
|
83
|
-
type: string;
|
|
84
|
-
properties: {
|
|
85
|
-
secretName: {
|
|
86
|
-
type: string;
|
|
87
|
-
};
|
|
88
|
-
remoteRef: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
required: string[];
|
|
93
|
-
};
|
|
94
80
|
};
|
|
95
81
|
};
|
|
82
|
+
required: string[];
|
|
96
83
|
};
|
|
97
84
|
};
|
|
98
85
|
required: string[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
ExternalSecretsProvider: {
|
|
89
|
+
$id: string;
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
allOf: ({
|
|
93
|
+
$ref: string;
|
|
94
|
+
anyOf?: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
anyOf: ({
|
|
97
|
+
properties: {
|
|
98
|
+
externalSecrets: {
|
|
99
|
+
$ref: string;
|
|
100
|
+
};
|
|
101
|
+
secretStore: {
|
|
102
|
+
$ref: string;
|
|
103
|
+
};
|
|
104
|
+
pushSecrets?: undefined;
|
|
105
|
+
};
|
|
106
|
+
required: string[];
|
|
107
|
+
} | {
|
|
108
|
+
properties: {
|
|
109
|
+
pushSecrets: {
|
|
110
|
+
$ref: string;
|
|
111
|
+
};
|
|
112
|
+
secretStore: {
|
|
113
|
+
$ref: string;
|
|
114
|
+
};
|
|
115
|
+
externalSecrets?: undefined;
|
|
116
|
+
};
|
|
117
|
+
required: string[];
|
|
118
|
+
})[];
|
|
99
119
|
$ref?: undefined;
|
|
100
120
|
})[];
|
|
101
121
|
};
|