@firestartr/cli 1.56.1-snapshot-1 → 1.56.1-snapshot-2
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 +12 -4
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -367007,13 +367007,21 @@ async function importGithubGitopsRepository(org, skipPlan, claimsPath, resources
|
|
|
367007
367007
|
previousCRs[k];
|
|
367008
367008
|
}
|
|
367009
367009
|
const crs = await renderCRs(data);
|
|
367010
|
-
|
|
367011
|
-
|
|
367010
|
+
for (const key in crs) {
|
|
367011
|
+
let cr = crs[key];
|
|
367012
|
+
const claimName = cr.metadata?.annotations?.[catalog_common.generic.getFirestartrAnnotation('external-name')];
|
|
367012
367013
|
const postRenderFunctions = data.postRender[`${cr.kind}-${claimName}`] || [];
|
|
367014
|
+
let crModified = false;
|
|
367013
367015
|
for (const postRenderFunction of postRenderFunctions) {
|
|
367014
367016
|
cr = postRenderFunction(cr);
|
|
367017
|
+
crModified = true;
|
|
367015
367018
|
}
|
|
367016
|
-
|
|
367019
|
+
if (crModified) {
|
|
367020
|
+
const crPath = getCrPath(tmpRenderedCrsPath, cr);
|
|
367021
|
+
catalog_common.io.writeYamlFile(external_path_.basename(crPath), cr, external_path_.dirname(crPath));
|
|
367022
|
+
crs[key] = cr;
|
|
367023
|
+
}
|
|
367024
|
+
}
|
|
367017
367025
|
await moveCRsAndClaims(crs, org, claimsPath, resourcesPath);
|
|
367018
367026
|
}
|
|
367019
367027
|
async function moveCRsAndClaims(crs, org, claimsPath, resourcesPath) {
|
|
@@ -376416,7 +376424,7 @@ const crs_analyzerSubcommand = {
|
|
|
376416
376424
|
};
|
|
376417
376425
|
|
|
376418
376426
|
;// CONCATENATED MODULE: ./package.json
|
|
376419
|
-
const package_namespaceObject = JSON.parse('{"i8":"1.56.1-snapshot-
|
|
376427
|
+
const package_namespaceObject = JSON.parse('{"i8":"1.56.1-snapshot-2"}');
|
|
376420
376428
|
;// CONCATENATED MODULE: ../../package.json
|
|
376421
376429
|
const package_namespaceObject_1 = {"i8":"1.56.0"};
|
|
376422
376430
|
;// CONCATENATED MODULE: ./src/subcommands/index.ts
|