@firestartr/cli 2.9.0-snapshot-org-variables-section-3 → 2.9.0-snapshot-org-variables-section-4
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
|
@@ -323504,7 +323504,7 @@ function renderFeature(featureName, version, owner, repo, featureOwner, renderPa
|
|
|
323504
323504
|
* without downloading and extracting the feature
|
|
323505
323505
|
*/
|
|
323506
323506
|
function renderFeatureFromPath(extractPath, renderedPath, featureOwner, featureArgs = {}) {
|
|
323507
|
-
return features_renderer.render(extractPath, renderedPath, featureOwner, featureArgs);
|
|
323507
|
+
return features_renderer.render(extractPath, renderedPath, featureOwner, {}, featureArgs);
|
|
323508
323508
|
}
|
|
323509
323509
|
|
|
323510
323510
|
// EXTERNAL MODULE: ../../node_modules/adm-zip/adm-zip.js
|
|
@@ -328824,12 +328824,20 @@ async function renderClaims(catalogScope, firestartrScope, data) {
|
|
|
328824
328824
|
? 'FirestartrGithubOrganizationSettings'
|
|
328825
328825
|
: undefined;
|
|
328826
328826
|
const previousCR = getPreviousCRfromClaim(claim, crs, expectedKind);
|
|
328827
|
+
let variableSectionPreviousCR = undefined;
|
|
328828
|
+
if (claim.kind === 'OrgSettingsClaim') {
|
|
328829
|
+
variableSectionPreviousCR = getPreviousCRfromClaim(claim, crs, 'FirestartrGithubOrganizationVariableSection');
|
|
328830
|
+
}
|
|
328827
328831
|
const patches = await extractPatches(renderClaims[claimKey], previousCR);
|
|
328832
|
+
let variableSectionPatches = undefined;
|
|
328833
|
+
if (claim.kind === 'OrgSettingsClaim') {
|
|
328834
|
+
variableSectionPatches = await extractPatches(renderClaims[claimKey], variableSectionPreviousCR);
|
|
328835
|
+
}
|
|
328828
328836
|
if (!previousCR) {
|
|
328829
328837
|
logger.debug(`No CR found for claim ${claimKey}, it will be rendered from scratch`);
|
|
328830
328838
|
}
|
|
328831
328839
|
const claimPath = renderClaims[claimKey].claimPath;
|
|
328832
|
-
const { firestartrEntity, extraCharts, catalogEntity } = await renderClaim(catalogScope, firestartrScope, claim, patches, previousCR, claimPath);
|
|
328840
|
+
const { firestartrEntity, extraCharts, catalogEntity } = await renderClaim(catalogScope, firestartrScope, claim, patches, previousCR, claimPath, variableSectionPatches);
|
|
328833
328841
|
if (catalogEntity) {
|
|
328834
328842
|
result[`${catalogEntity.kind}-${catalogEntity.metadata.name}`] =
|
|
328835
328843
|
catalogEntity.toJson();
|
|
@@ -328858,7 +328866,7 @@ async function renderClaims(catalogScope, firestartrScope, data) {
|
|
|
328858
328866
|
}
|
|
328859
328867
|
return result;
|
|
328860
328868
|
}
|
|
328861
|
-
async function renderClaim(catalogScope, firestartrScope, claim, patches, previousCR = null, claimPath) {
|
|
328869
|
+
async function renderClaim(catalogScope, firestartrScope, claim, patches, previousCR = null, claimPath, variableSectionPatches) {
|
|
328862
328870
|
let catalogEntity = undefined;
|
|
328863
328871
|
let firestartrEntity = undefined;
|
|
328864
328872
|
const extraCharts = [];
|
|
@@ -329009,9 +329017,15 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
|
|
|
329009
329017
|
const variableSectionFirestartrId = firestartrId
|
|
329010
329018
|
? `${firestartrId}-variables`
|
|
329011
329019
|
: null;
|
|
329012
|
-
const
|
|
329020
|
+
const vsRenderPatches = variableSectionPatches
|
|
329021
|
+
? variableSectionPatches.filter((patch) => !patch.isPostPatch)
|
|
329022
|
+
: renderPatches;
|
|
329023
|
+
const vsPostPatches = variableSectionPatches
|
|
329024
|
+
? variableSectionPatches.filter((patch) => patch.isPostPatch)
|
|
329025
|
+
: postPatches;
|
|
329026
|
+
const variableSectionChart = new charts.GithubOrgVariableSectionChart(firestartrScope, `github-variables-${chartId}`, variableSectionFirestartrId, claim, vsRenderPatches);
|
|
329013
329027
|
await variableSectionChart.render();
|
|
329014
|
-
const variableSectionObject = await variableSectionChart.postRenderer(
|
|
329028
|
+
const variableSectionObject = await variableSectionChart.postRenderer(vsPostPatches);
|
|
329015
329029
|
extraCharts.push({
|
|
329016
329030
|
claim: {
|
|
329017
329031
|
kind: claim.kind,
|
|
@@ -522610,7 +522624,7 @@ const crsStatusSubcommand = {
|
|
|
522610
522624
|
};
|
|
522611
522625
|
|
|
522612
522626
|
;// CONCATENATED MODULE: ./package.json
|
|
522613
|
-
const package_namespaceObject = JSON.parse('{"i8":"2.9.0-snapshot-org-variables-section-
|
|
522627
|
+
const package_namespaceObject = JSON.parse('{"i8":"2.9.0-snapshot-org-variables-section-4"}');
|
|
522614
522628
|
;// CONCATENATED MODULE: ../../package.json
|
|
522615
522629
|
const package_namespaceObject_1 = {"i8":"2.8.0"};
|
|
522616
522630
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|
|
@@ -8,5 +8,5 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
|
|
|
8
8
|
crs: any;
|
|
9
9
|
renames?: IRenameResult[];
|
|
10
10
|
}): Promise<RenderedCrMap>;
|
|
11
|
-
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string): Promise<IRenderClaimResult>;
|
|
11
|
+
export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
|
|
12
12
|
export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
|