@firestartr/cli 1.45.0-snapshot-13 → 1.45.0-snapshot-15
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 +31 -14
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -279575,21 +279575,30 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279575
279575
|
provider === AllowedProviders.catalog ||
|
|
279576
279576
|
provider === AllowedProviders.github) &&
|
|
279577
279577
|
'github' in claim.providers;
|
|
279578
|
+
const loadCatalog = provider === AllowedProviders.all || provider === AllowedProviders.catalog;
|
|
279578
279579
|
switch (claim.kind) {
|
|
279579
279580
|
case 'DomainClaim':
|
|
279580
|
-
|
|
279581
|
+
if (loadCatalog) {
|
|
279582
|
+
catalogEntity = new charts.CatalogDomainChart(catalogScope, `catalog-${chartId}`, firestartrId, claim, renderPatches);
|
|
279583
|
+
}
|
|
279581
279584
|
break;
|
|
279582
279585
|
case 'SystemClaim':
|
|
279583
|
-
|
|
279586
|
+
if (loadCatalog) {
|
|
279587
|
+
catalogEntity = new charts.CatalogSystemChart(catalogScope, `catalog-${chartId}`, firestartrId, claim, renderPatches);
|
|
279588
|
+
}
|
|
279584
279589
|
break;
|
|
279585
279590
|
case 'GroupClaim':
|
|
279586
|
-
|
|
279591
|
+
if (loadCatalog) {
|
|
279592
|
+
catalogEntity = new charts.CatalogGroupChart(catalogScope, `catalog-${chartId}`, firestartrId, claim, renderPatches);
|
|
279593
|
+
}
|
|
279587
279594
|
if (loadGithub) {
|
|
279588
279595
|
firestartrEntity = new charts.GithubGroupChart(firestartrScope, `github-${chartId}`, firestartrId, claim, renderPatches);
|
|
279589
279596
|
}
|
|
279590
279597
|
break;
|
|
279591
279598
|
case 'UserClaim':
|
|
279592
|
-
|
|
279599
|
+
if (loadCatalog) {
|
|
279600
|
+
catalogEntity = new charts.CatalogUserChart(catalogScope, chartId, firestartrId, claim, renderPatches);
|
|
279601
|
+
}
|
|
279593
279602
|
if (loadGithub) {
|
|
279594
279603
|
firestartrEntity = new charts.GithubMembershipChart(firestartrScope, `github-${chartId}`, firestartrId, claim, renderPatches);
|
|
279595
279604
|
}
|
|
@@ -279598,7 +279607,9 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279598
279607
|
if (loadGithub) {
|
|
279599
279608
|
firestartrEntity = new charts.GithubRepositoryChart(firestartrScope, `github-${chartId}`, firestartrId, claim, renderPatches);
|
|
279600
279609
|
}
|
|
279601
|
-
|
|
279610
|
+
if (loadCatalog) {
|
|
279611
|
+
catalogEntity = new charts.CatalogComponentChart(catalogScope, chartId, firestartrId, claim, renderPatches);
|
|
279612
|
+
}
|
|
279602
279613
|
break;
|
|
279603
279614
|
case 'TFWorkspaceClaim':
|
|
279604
279615
|
if (claim.providers.terraform &&
|
|
@@ -279606,7 +279617,9 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279606
279617
|
provider === AllowedProviders.all)) {
|
|
279607
279618
|
firestartrEntity = new charts.TFWorkspaceChart(firestartrScope, `terraform-${chartId}`, firestartrId, claim, renderPatches);
|
|
279608
279619
|
}
|
|
279609
|
-
|
|
279620
|
+
if (loadCatalog) {
|
|
279621
|
+
catalogEntity = new charts.CatalogTFWorkspaceChart(catalogScope, chartId, firestartrId, claim, renderPatches);
|
|
279622
|
+
}
|
|
279610
279623
|
break;
|
|
279611
279624
|
case 'SecretsClaim':
|
|
279612
279625
|
if (claim.providers.external_secrets &&
|
|
@@ -279615,7 +279628,9 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279615
279628
|
provider === AllowedProviders.all)) {
|
|
279616
279629
|
firestartrEntity = new charts.SecretsChart(firestartrScope, chartId, firestartrId, claim, []);
|
|
279617
279630
|
}
|
|
279618
|
-
|
|
279631
|
+
if (loadCatalog) {
|
|
279632
|
+
catalogEntity = new charts.CatalogSecretsChart(catalogScope, chartId, firestartrId, claim, []);
|
|
279633
|
+
}
|
|
279619
279634
|
break;
|
|
279620
279635
|
case 'ArgoDeployClaim':
|
|
279621
279636
|
if (claim.providers.argocd &&
|
|
@@ -279623,10 +279638,14 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279623
279638
|
provider === AllowedProviders.all)) {
|
|
279624
279639
|
firestartrEntity = new charts.ArgoDeployChart(firestartrScope, `argocd-${chartId}`, firestartrId, claim, renderPatches);
|
|
279625
279640
|
}
|
|
279626
|
-
|
|
279641
|
+
if (loadCatalog) {
|
|
279642
|
+
catalogEntity = new charts.CatalogArgoDeployChart(catalogScope, chartId, firestartrId, claim, renderPatches);
|
|
279643
|
+
}
|
|
279627
279644
|
break;
|
|
279628
279645
|
case 'OrgWebhookClaim':
|
|
279629
|
-
|
|
279646
|
+
if (loadCatalog) {
|
|
279647
|
+
catalogEntity = new charts.CatalogOrgWebhookChart(catalogScope, `catalog-${chartId}`, firestartrId, claim, renderPatches);
|
|
279648
|
+
}
|
|
279630
279649
|
if (loadGithub) {
|
|
279631
279650
|
firestartrEntity = new charts.GithubOrgWebhookChart(firestartrScope, `github-${chartId}`, firestartrId, claim, renderPatches);
|
|
279632
279651
|
}
|
|
@@ -279639,7 +279658,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279639
279658
|
* There is the possibility to only render the catalog entity, but not the other way around
|
|
279640
279659
|
*/
|
|
279641
279660
|
if (!catalogEntity) {
|
|
279642
|
-
throw new Error(`Unable to render claim ${claim.kind}-${claim.name}`);
|
|
279661
|
+
//throw new Error(`Unable to render claim ${claim.kind}-${claim.name}`);
|
|
279643
279662
|
}
|
|
279644
279663
|
/*
|
|
279645
279664
|
*
|
|
@@ -279647,9 +279666,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279647
279666
|
*
|
|
279648
279667
|
*/
|
|
279649
279668
|
const [catalogChart, firestartrEntityChart] = await Promise.all([
|
|
279650
|
-
|
|
279651
|
-
? catalogEntity.render()
|
|
279652
|
-
: Promise.resolve(undefined),
|
|
279669
|
+
loadCatalog ? catalogEntity.render() : Promise.resolve(undefined),
|
|
279653
279670
|
firestartrEntity?.render(),
|
|
279654
279671
|
]);
|
|
279655
279672
|
/*
|
|
@@ -279658,7 +279675,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
279658
279675
|
*
|
|
279659
279676
|
*/
|
|
279660
279677
|
return {
|
|
279661
|
-
catalogEntity:
|
|
279678
|
+
catalogEntity: loadCatalog
|
|
279662
279679
|
? await catalogChart.postRenderer(postPatches)
|
|
279663
279680
|
: undefined,
|
|
279664
279681
|
firestartrEntity: await (firestartrEntityChart
|