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