@firestartr/cli 1.43.2-snapshot-10 → 1.43.2-snapshot
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
@@ -271394,7 +271394,7 @@ function fromYaml(data) {
|
|
271394
271394
|
return result;
|
271395
271395
|
}
|
271396
271396
|
function toYaml(data, opts = {}) {
|
271397
|
-
|
271397
|
+
messageLog('opts', opts);
|
271398
271398
|
const result = yaml_dist.stringify(data);
|
271399
271399
|
return result;
|
271400
271400
|
}
|
@@ -273032,20 +273032,20 @@ const fullMembersTeam = getFromEnvironmentWithDefault(envVars.fullOrgGroup, `${o
|
|
273032
273032
|
|
273033
273033
|
const tarballs_messageLog = src_default()('firestartr:catalog_common:features:tarballs');
|
273034
273034
|
function getFeatureZipDownloadPath(featureName, version) {
|
273035
|
-
const
|
273036
|
-
tarballs_messageLog('Feature tarball download path %s',
|
273037
|
-
return
|
273035
|
+
const featureDownloadPath = `/tmp/${featureName}-${version}-zipball.zip`;
|
273036
|
+
tarballs_messageLog('Feature tarball download path %s', featureDownloadPath);
|
273037
|
+
return featureDownloadPath;
|
273038
273038
|
}
|
273039
273039
|
function removeFeatureTarball(featureName, version) {
|
273040
|
-
const
|
273041
|
-
tarballs_messageLog('Removing feature tarball %s',
|
273042
|
-
external_fs_.unlinkSync(
|
273043
|
-
tarballs_messageLog(`Removed tarball for feature ${featureName} and version ${version}: ${
|
273040
|
+
const featurePath = getFeatureZipDownloadPath(featureName, version);
|
273041
|
+
tarballs_messageLog('Removing feature tarball %s', featurePath);
|
273042
|
+
external_fs_.unlinkSync(featurePath);
|
273043
|
+
tarballs_messageLog(`Removed tarball for feature ${featureName} and version ${version}: ${featurePath}`);
|
273044
273044
|
}
|
273045
273045
|
function featureTarballExists(featureName, version) {
|
273046
|
-
const
|
273047
|
-
const exists = external_fs_.existsSync(
|
273048
|
-
tarballs_messageLog(`Tarball ${
|
273046
|
+
const featurePath = getFeatureZipDownloadPath(featureName, version);
|
273047
|
+
const exists = external_fs_.existsSync(featurePath);
|
273048
|
+
tarballs_messageLog(`Tarball ${featurePath} exists? ${exists}`);
|
273049
273049
|
return exists;
|
273050
273050
|
}
|
273051
273051
|
function getFeaturesExtractPath(featureName, version, options = {}) {
|
@@ -281858,6 +281858,9 @@ const deploy_schema = 'firestartr.dev://common/ArgoDeployClaim';
|
|
281858
281858
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/claims/base/orgWebhook.ts
|
281859
281859
|
const orgWebhook_schema = 'firestartr.dev://common/OrgWebhookClaim';
|
281860
281860
|
|
281861
|
+
;// CONCATENATED MODULE: ../cdk8s_renderer/src/claims/base/secrets.ts
|
281862
|
+
const base_secrets_schema = 'firestartr.dev://common/SecretsClaim';
|
281863
|
+
|
281861
281864
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/claims/base/index.ts
|
281862
281865
|
|
281863
281866
|
|
@@ -281867,6 +281870,7 @@ const orgWebhook_schema = 'firestartr.dev://common/OrgWebhookClaim';
|
|
281867
281870
|
|
281868
281871
|
|
281869
281872
|
|
281873
|
+
|
281870
281874
|
/* harmony default export */ const base = ({
|
281871
281875
|
UserClaimSchema: schema,
|
281872
281876
|
GroupClaimSchema: base_group_schema,
|
@@ -281876,6 +281880,7 @@ const orgWebhook_schema = 'firestartr.dev://common/OrgWebhookClaim';
|
|
281876
281880
|
TFWorkspaceClaimSchema: workspace_schema,
|
281877
281881
|
ArgoDeployClaimSchema: deploy_schema,
|
281878
281882
|
OrgWebhookClaimSchema: orgWebhook_schema,
|
281883
|
+
SecretsClaimSchema: base_secrets_schema,
|
281879
281884
|
});
|
281880
281885
|
|
281881
281886
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/normalizers/refValues.ts
|
@@ -282285,6 +282290,8 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
282285
282290
|
|
282286
282291
|
|
282287
282292
|
|
282293
|
+
|
282294
|
+
|
282288
282295
|
const lazy_loader_log = src_default()('firestartr:renderer:lazy_loader');
|
282289
282296
|
async function loadClaim(claimRef, org, defaults, patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, existingRefs = {}) {
|
282290
282297
|
let result = existingRefs;
|
@@ -282293,7 +282300,15 @@ async function loadClaim(claimRef, org, defaults, patchClaim, loadInitializers,
|
|
282293
282300
|
lazy_loader_log(`Load reference (parts) ${claimRef.split(/-/)[0]} ${claimRef.replace(/^[^-]+-/, '')}`);
|
282294
282301
|
// cargas datos con grep
|
282295
282302
|
const claimData = await lazyGetClaim(claimRef.split(/-/)[0], claimRef.replace(/^[^-]+-/, ''), org, cwd);
|
282296
|
-
const claim = patchClaim(
|
282303
|
+
// const claim: any = patchClaim(common.io.fromYaml(claimData), defaults);
|
282304
|
+
const claim = catalog_common.io.fromYaml(claimData);
|
282305
|
+
try {
|
282306
|
+
validateClaim(claim, base[`${claim.kind}Schema`]);
|
282307
|
+
await optionalValidation(claim);
|
282308
|
+
}
|
282309
|
+
catch (error) {
|
282310
|
+
throw new Error(`Error when validating claim ${claimRef}: ${error}`);
|
282311
|
+
}
|
282297
282312
|
result[claimRef] = {};
|
282298
282313
|
result[claimRef]['claim'] = claim;
|
282299
282314
|
result[claimRef]['claimPath'] = VisitedClaims[claimRef];
|
@@ -284261,9 +284276,6 @@ async function downloadFeatureZip(repo, featureName, reference, owner = 'prefapp
|
|
284261
284276
|
throw new Error(`Error for feature with tag ${reference}: ${error}. GitHub response: ${error}`);
|
284262
284277
|
}
|
284263
284278
|
}
|
284264
|
-
function buildRef(featureName, version) {
|
284265
|
-
return `${featureName}-v${version}`;
|
284266
|
-
}
|
284267
284279
|
|
284268
284280
|
;// CONCATENATED MODULE: ../features_preparer/src/index.ts
|
284269
284281
|
|
@@ -428,7 +428,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
428
428
|
verified_at: string;
|
429
429
|
};
|
430
430
|
};
|
431
|
-
author: {
|
431
|
+
author: Record<string, never> | {
|
432
432
|
name?: string;
|
433
433
|
email?: string;
|
434
434
|
login: string;
|
@@ -451,8 +451,8 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
451
451
|
site_admin: boolean;
|
452
452
|
starred_at?: string;
|
453
453
|
user_view_type?: string;
|
454
|
-
}
|
455
|
-
committer: {
|
454
|
+
};
|
455
|
+
committer: Record<string, never> | {
|
456
456
|
name?: string;
|
457
457
|
email?: string;
|
458
458
|
login: string;
|
@@ -475,7 +475,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
475
475
|
site_admin: boolean;
|
476
476
|
starred_at?: string;
|
477
477
|
user_view_type?: string;
|
478
|
-
}
|
478
|
+
};
|
479
479
|
parents: {
|
480
480
|
sha: string;
|
481
481
|
url: string;
|