@firestartr/cli 1.39.3 → 1.39.5
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 +7 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -294322,6 +294322,7 @@ function definitions_getPluralFromKind(kind) {
|
|
294322
294322
|
|
294323
294323
|
|
294324
294324
|
const fDebug = src_default()('firestartr:operator:ctl');
|
294325
|
+
const MAX_CHARS_OUPUT_PLAN = 20000;
|
294325
294326
|
const logObserveList = src_default()('firestartr:operator:ctl:observeList');
|
294326
294327
|
async function getItem(kind, namespace, item) {
|
294327
294328
|
const itemPath = `${namespace}/${kind}/${item.metadata.name}`;
|
@@ -294732,6 +294733,12 @@ async function addDestroyCommitStatus(cr, state, description = '', context = '')
|
|
294732
294733
|
}
|
294733
294734
|
async function addPlanStatusCheck(prUrl, summary, status = 'in_progress', isFailure = false) {
|
294734
294735
|
try {
|
294736
|
+
fDebug(`Summary length: ${summary.length}`);
|
294737
|
+
if (summary.length > MAX_CHARS_OUPUT_PLAN) {
|
294738
|
+
const mustDrop = summary.length - MAX_CHARS_OUPUT_PLAN;
|
294739
|
+
summary = summary.substring(mustDrop);
|
294740
|
+
fDebug(`Summary is too long, dropping ${mustDrop} characters, new length: ${summary.length}`);
|
294741
|
+
}
|
294735
294742
|
await ctl_addStatusCheck({ summary, title: 'Terraform Plan Results' }, isFailure, 'terraform_plan', prUrl, status);
|
294736
294743
|
}
|
294737
294744
|
catch (e) {
|