@firestartr/cli 1.52.0 → 1.53.0-snapshot-1
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
|
@@ -354669,6 +354669,7 @@ class GithubCheckRun {
|
|
|
354669
354669
|
async __updateCheckRun(allContent) {
|
|
354670
354670
|
if (this.closed || this.closing)
|
|
354671
354671
|
return;
|
|
354672
|
+
await this.__ensureCreated();
|
|
354672
354673
|
const { text, summary } = this.buildOutputTextAndSummary(allContent);
|
|
354673
354674
|
await this.octokit.rest.checks.update({
|
|
354674
354675
|
owner: this.owner,
|
|
@@ -355534,9 +355535,32 @@ class GlobalDefault extends DefaultSection {
|
|
|
355534
355535
|
}
|
|
355535
355536
|
}
|
|
355536
355537
|
|
|
355538
|
+
;// CONCATENATED MODULE: ../cdk8s_renderer/src/defaults/oneWayDefs.ts
|
|
355539
|
+
// this function ensures that there are some specs that have to be defined
|
|
355540
|
+
// anew and cannot be fed back from the previous CR
|
|
355541
|
+
//
|
|
355542
|
+
// The only definition is the one in the claim-level and the resulting rendered CR
|
|
355543
|
+
// Thus it performs a nullify of the designed patches
|
|
355544
|
+
|
|
355545
|
+
|
|
355546
|
+
const ONE_WAY_DEFINITIONS = ['/spec/vars'];
|
|
355547
|
+
function applyOneWayDefs(crSpecs) {
|
|
355548
|
+
const crSpecsClone = JSON.parse(JSON.stringify(crSpecs));
|
|
355549
|
+
for (const defPath of ONE_WAY_DEFINITIONS) {
|
|
355550
|
+
if (hasDeepPath(crSpecs, defPath)) {
|
|
355551
|
+
fast_json_patch_default().applyPatch(crSpecsClone, [{ op: 'remove', path: defPath }]);
|
|
355552
|
+
}
|
|
355553
|
+
}
|
|
355554
|
+
return crSpecsClone;
|
|
355555
|
+
}
|
|
355556
|
+
function hasDeepPath(data, deepPath) {
|
|
355557
|
+
return lodash_default().has(data, deepPath.replace(/\//g, '.').replace(/^\./, ''));
|
|
355558
|
+
}
|
|
355559
|
+
|
|
355537
355560
|
;// CONCATENATED MODULE: ../cdk8s_renderer/src/defaults/initializer.ts
|
|
355538
355561
|
|
|
355539
355562
|
|
|
355563
|
+
|
|
355540
355564
|
/*
|
|
355541
355565
|
* This class extends DefaultSection and recieves arbitrary CR data to
|
|
355542
355566
|
* create a patch object (CustomResourceDefaultsPatch) capable of:
|
|
@@ -355607,10 +355631,11 @@ class InitializerDefault extends DefaultSection {
|
|
|
355607
355631
|
let patchData = {};
|
|
355608
355632
|
if (previousCR?.spec) {
|
|
355609
355633
|
// This code add fields present in this.data but missing in
|
|
355610
|
-
// previousCR.spec into the
|
|
355611
|
-
const
|
|
355634
|
+
// previousCR.spec into the later
|
|
355635
|
+
const previousCRCurated = applyOneWayDefs(previousCR);
|
|
355636
|
+
const fieldsToAddPatches = fast_json_patch_default().compare(previousCRCurated.spec, this.data)
|
|
355612
355637
|
.filter((op) => op.op === 'add');
|
|
355613
|
-
patchData = fast_json_patch_default().applyPatch(
|
|
355638
|
+
patchData = fast_json_patch_default().applyPatch(previousCRCurated.spec, fieldsToAddPatches).newDocument;
|
|
355614
355639
|
}
|
|
355615
355640
|
else {
|
|
355616
355641
|
patchData = this.data;
|
|
@@ -357520,6 +357545,7 @@ const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createReq
|
|
|
357520
357545
|
type: 'array',
|
|
357521
357546
|
items: {
|
|
357522
357547
|
type: 'string',
|
|
357548
|
+
pattern: '^user:[a-zA-Z0-9_-]+$',
|
|
357523
357549
|
},
|
|
357524
357550
|
},
|
|
357525
357551
|
providers: {
|
|
@@ -358897,7 +358923,7 @@ function applyBlockAwareDefaults(claim, defaultClaim) {
|
|
|
358897
358923
|
// we remove the blocks entirely of the claim
|
|
358898
358924
|
// to achieve an add copy
|
|
358899
358925
|
for (const defaultBlockPath of defaultBlocksPaths) {
|
|
358900
|
-
if (
|
|
358926
|
+
if (claimsDefaulter_hasDeepPath(claimClone, defaultBlockPath) !== true)
|
|
358901
358927
|
continue;
|
|
358902
358928
|
const originalValue = fast_json_patch_default().getValueByPointer(claimClone, defaultBlockPath);
|
|
358903
358929
|
if (originalValue) {
|
|
@@ -358925,7 +358951,7 @@ function applyBlockAwareDefaults(claim, defaultClaim) {
|
|
|
358925
358951
|
});
|
|
358926
358952
|
return fast_json_patch_default().applyPatch(claimClone, jsonPatchOps).newDocument;
|
|
358927
358953
|
}
|
|
358928
|
-
function
|
|
358954
|
+
function claimsDefaulter_hasDeepPath(data, deepPath) {
|
|
358929
358955
|
return lodash_default().has(data, deepPath.replace(/\//g, '.').replace(/^\./, ''));
|
|
358930
358956
|
}
|
|
358931
358957
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function applyOneWayDefs(crSpecs: any): any;
|