@firestartr/cli 3.1.0-snapshot-tfstatekey → 3.1.1-snapshot-firestartrignore
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
|
@@ -154998,9 +154998,25 @@ function createExpanders(path) {
|
|
|
154998
154998
|
;// CONCATENATED MODULE: external "node:fs/promises"
|
|
154999
154999
|
const promises_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises");
|
|
155000
155000
|
var promises_default = /*#__PURE__*/__nccwpck_require__.n(promises_namespaceObject);
|
|
155001
|
+
// EXTERNAL MODULE: external "node:fs"
|
|
155002
|
+
var external_node_fs_ = __nccwpck_require__(73024);
|
|
155003
|
+
// EXTERNAL MODULE: external "node:path"
|
|
155004
|
+
var external_node_path_ = __nccwpck_require__(76760);
|
|
155005
|
+
var external_node_path_default = /*#__PURE__*/__nccwpck_require__.n(external_node_path_);
|
|
155006
|
+
;// CONCATENATED MODULE: ../cdk8s_renderer/src/utils/fileIgnore.ts
|
|
155007
|
+
|
|
155008
|
+
|
|
155009
|
+
const FIRESTARTR_IGNORE_FILE = '.firestartrignore';
|
|
155010
|
+
/** Only the file's own directory matters; markers are not inherited. */
|
|
155011
|
+
function fileIgnore_isIgnoredFile(file) {
|
|
155012
|
+
return (/\.(yaml|yml)$/.test(file) &&
|
|
155013
|
+
(0,external_node_fs_.existsSync)(external_node_path_default().join(external_node_path_default().dirname(file), FIRESTARTR_IGNORE_FILE)));
|
|
155014
|
+
}
|
|
155015
|
+
|
|
155001
155016
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/crawler.ts
|
|
155002
155017
|
|
|
155003
155018
|
|
|
155019
|
+
|
|
155004
155020
|
// Number of files being currently slurped
|
|
155005
155021
|
let activeSlurps = 0;
|
|
155006
155022
|
// Max number of files that can be being slurped at a given time
|
|
@@ -155110,11 +155126,16 @@ async function crawlDirectory(dirEnt, exec) {
|
|
|
155110
155126
|
const entries = (await promises_namespaceObject.readdir(dirEnt))
|
|
155111
155127
|
.map((entry) => external_path_.join(dirEnt, entry))
|
|
155112
155128
|
.sort();
|
|
155129
|
+
const ignoreFiles = entries.includes(external_path_.join(dirEnt, FIRESTARTR_IGNORE_FILE));
|
|
155113
155130
|
for (const entry of entries) {
|
|
155114
155131
|
const testDir = await isDir(entry);
|
|
155115
155132
|
if (testDir) {
|
|
155116
155133
|
await crawlDirectory(entry, exec);
|
|
155117
155134
|
}
|
|
155135
|
+
else if (external_path_.basename(entry) === FIRESTARTR_IGNORE_FILE ||
|
|
155136
|
+
(ignoreFiles && /\.(yaml|yml)$/.test(entry))) {
|
|
155137
|
+
continue;
|
|
155138
|
+
}
|
|
155118
155139
|
else {
|
|
155119
155140
|
await slurpFile(entry, exec);
|
|
155120
155141
|
}
|
|
@@ -159484,10 +159505,6 @@ function addTraceabilityStamp(context, content) {
|
|
|
159484
159505
|
}
|
|
159485
159506
|
}
|
|
159486
159507
|
|
|
159487
|
-
// EXTERNAL MODULE: external "node:path"
|
|
159488
|
-
var external_node_path_ = __nccwpck_require__(76760);
|
|
159489
|
-
// EXTERNAL MODULE: external "node:fs"
|
|
159490
|
-
var external_node_fs_ = __nccwpck_require__(73024);
|
|
159491
159508
|
;// CONCATENATED MODULE: external "node:os"
|
|
159492
159509
|
const external_node_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os");
|
|
159493
159510
|
;// CONCATENATED MODULE: ../features_renderer/src/auxiliar.ts
|
|
@@ -160861,6 +160878,7 @@ function extractClaimPatches(rendered) {
|
|
|
160861
160878
|
|
|
160862
160879
|
|
|
160863
160880
|
|
|
160881
|
+
|
|
160864
160882
|
// We need to ensure the grep command is a gnu version
|
|
160865
160883
|
let IS_GNU_GREP = false;
|
|
160866
160884
|
let GREP_ON_CHECK = false;
|
|
@@ -161054,7 +161072,9 @@ async function getClaimsByName(name, cwd = '.') {
|
|
|
161054
161072
|
if (Object.values(VisitedClaims).includes(fileName)) {
|
|
161055
161073
|
continue;
|
|
161056
161074
|
}
|
|
161057
|
-
|
|
161075
|
+
const entry = external_path_.join(cwd, fileName);
|
|
161076
|
+
if (!fileIgnore_isIgnoredFile(entry))
|
|
161077
|
+
entradas.push(entry);
|
|
161058
161078
|
}
|
|
161059
161079
|
return Promise.all(entradas.map((entrada) => {
|
|
161060
161080
|
return loadRawClaim(entrada);
|
|
@@ -161184,6 +161204,7 @@ function claimsDefaulter_hasDeepPath(data, deepPath) {
|
|
|
161184
161204
|
|
|
161185
161205
|
|
|
161186
161206
|
|
|
161207
|
+
|
|
161187
161208
|
const isYamlFile = new RegExp(/\.(yaml|yml)$/);
|
|
161188
161209
|
/**
|
|
161189
161210
|
*
|
|
@@ -161307,6 +161328,9 @@ async function loadInitializers(claim, claimPath, initializersPath = getPath('in
|
|
|
161307
161328
|
return result;
|
|
161308
161329
|
}
|
|
161309
161330
|
function loadClaimDefaults() {
|
|
161331
|
+
if (fileIgnore_isIgnoredFile(`${getPath('claimsDefaults')}/claims_defaults.yaml`)) {
|
|
161332
|
+
return {};
|
|
161333
|
+
}
|
|
161310
161334
|
try {
|
|
161311
161335
|
return catalog_common/* default */.A.io.fromYaml(external_fs_.readFileSync(`${getPath('claimsDefaults')}/claims_defaults.yaml`, 'utf-8'));
|
|
161312
161336
|
}
|
|
@@ -161891,6 +161915,7 @@ const KINDS_CR_MAP = {
|
|
|
161891
161915
|
|
|
161892
161916
|
|
|
161893
161917
|
|
|
161918
|
+
|
|
161894
161919
|
function resolveStringReference(reference) {
|
|
161895
161920
|
const referenceElements = reference.split(':');
|
|
161896
161921
|
const actualKind = KINDS_CR_MAP[referenceElements[0]];
|
|
@@ -161911,6 +161936,8 @@ function resolveClaimFilesList(claimRefsList) {
|
|
|
161911
161936
|
const fileList = claimRefsList.replace(/\s/g, '').split(',');
|
|
161912
161937
|
const refList = [];
|
|
161913
161938
|
for (const file of fileList) {
|
|
161939
|
+
if (isIgnoredFile(file))
|
|
161940
|
+
continue;
|
|
161914
161941
|
try {
|
|
161915
161942
|
const data = fs.readFileSync(file, 'utf-8');
|
|
161916
161943
|
const claim = common.io.fromYaml(data);
|
|
@@ -161941,6 +161968,8 @@ async function* resolveClaimEntries(claimRefsList) {
|
|
|
161941
161968
|
yield* resolveDirEntries(claimEntry);
|
|
161942
161969
|
}
|
|
161943
161970
|
else if (claimEntryStats.isFile()) {
|
|
161971
|
+
if (fileIgnore_isIgnoredFile(claimEntry))
|
|
161972
|
+
continue;
|
|
161944
161973
|
logger.debug(`Sending entry ${resolveClaimFileRef(claimEntry)} (${claimEntry})`);
|
|
161945
161974
|
yield resolveClaimFileRef(claimEntry);
|
|
161946
161975
|
}
|
|
@@ -161960,12 +161989,15 @@ async function* resolveDirEntries(dir) {
|
|
|
161960
161989
|
catch (err) {
|
|
161961
161990
|
throw new Error(`Reading dir: ${dir}: ${err}`);
|
|
161962
161991
|
}
|
|
161992
|
+
const ignoreFiles = entries.some((entry) => entry.name === FIRESTARTR_IGNORE_FILE);
|
|
161963
161993
|
for (const entry of entries) {
|
|
161964
161994
|
const fullPath = external_path_default().join(dir, entry.name);
|
|
161965
161995
|
if (entry.isDirectory()) {
|
|
161966
161996
|
yield* resolveDirEntries(fullPath);
|
|
161967
161997
|
}
|
|
161968
|
-
else if (
|
|
161998
|
+
else if (!ignoreFiles &&
|
|
161999
|
+
entry.isFile() &&
|
|
162000
|
+
entry.name.match(/\.yaml$|\.yml$/)) {
|
|
161969
162001
|
const claimRef = await resolveClaimFileRef(fullPath);
|
|
161970
162002
|
logger.debug(`Sending entry ${claimRef} (${fullPath})`);
|
|
161971
162003
|
yield claimRef;
|
|
@@ -162040,12 +162072,15 @@ async function crawlClaimsDir(dir, basePath, claims) {
|
|
|
162040
162072
|
catch (err) {
|
|
162041
162073
|
throw new Error(`Reading directory ${dir}: ${err}`);
|
|
162042
162074
|
}
|
|
162075
|
+
const ignoreFiles = entries.some((entry) => entry.name === FIRESTARTR_IGNORE_FILE);
|
|
162043
162076
|
for (const entry of entries) {
|
|
162044
162077
|
const fullPath = external_path_default().join(dir, entry.name);
|
|
162045
162078
|
if (entry.isDirectory()) {
|
|
162046
162079
|
await crawlClaimsDir(fullPath, basePath, claims);
|
|
162047
162080
|
}
|
|
162048
|
-
else if (
|
|
162081
|
+
else if (!ignoreFiles &&
|
|
162082
|
+
entry.isFile() &&
|
|
162083
|
+
entry.name.match(/\.yaml$|\.yml$/)) {
|
|
162049
162084
|
try {
|
|
162050
162085
|
const data = await external_fs_default().promises.readFile(fullPath, 'utf-8');
|
|
162051
162086
|
const claim = catalog_common/* default */.A.io.fromYaml(data);
|
|
@@ -362088,6 +362123,11 @@ async function planTerraformWorkspace(cr, status, opts) {
|
|
|
362088
362123
|
async function planGithubResource(cr, status, opts) {
|
|
362089
362124
|
fDebug('Resolving references');
|
|
362090
362125
|
const deps = await resolve(cr, getPrAwareItemByItemPath(opts, status), getSecret, opts.namespace);
|
|
362126
|
+
deps['self-outputs'] = {
|
|
362127
|
+
cr: cr?.metadata?.name
|
|
362128
|
+
? await resolveSecretRef(cr.metadata.namespace || opts.namespace, cr, getSecret)
|
|
362129
|
+
: undefined,
|
|
362130
|
+
};
|
|
362091
362131
|
fDebug('Running GitHub provisioner plan');
|
|
362092
362132
|
return await gh_provisioner.runGhProvisioner({
|
|
362093
362133
|
mainCr: cr,
|
|
@@ -364223,9 +364263,9 @@ const crsStatusSubcommand = {
|
|
|
364223
364263
|
};
|
|
364224
364264
|
|
|
364225
364265
|
;// CONCATENATED MODULE: ./package.json
|
|
364226
|
-
const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"3.1.
|
|
364266
|
+
const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"3.1.1-snapshot-firestartrignore"}');
|
|
364227
364267
|
;// CONCATENATED MODULE: ../../package.json
|
|
364228
|
-
const package_namespaceObject_1 = {"rE":"3.1.
|
|
364268
|
+
const package_namespaceObject_1 = {"rE":"3.1.1"};
|
|
364229
364269
|
// EXTERNAL MODULE: ../../node_modules/semver/index.js
|
|
364230
364270
|
var semver = __nccwpck_require__(90084);
|
|
364231
364271
|
var semver_default = /*#__PURE__*/__nccwpck_require__.n(semver);
|