@firestartr/cli 1.53.0-snapshot-6 → 1.53.0-snapshot-8

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
@@ -356844,8 +356844,7 @@ class SyncerInitializer extends InitializerPatches {
356844
356844
  cr.metadata.annotations = cr.metadata.annotations || {};
356845
356845
  // Apply general policy annotation
356846
356846
  if (policyInfo(this)) {
356847
- cr.metadata.annotations['firestartr.dev/policy'] =
356848
- policyInfo(this);
356847
+ cr.metadata.annotations['firestartr.dev/policy'] = policyInfo(this);
356849
356848
  }
356850
356849
  if (syncInfo(this).enabled) {
356851
356850
  cr.metadata.annotations['firestartr.dev/sync-enabled'] = 'true';
@@ -364112,8 +364111,12 @@ class FeatureRepoChart extends BaseGithubChart {
364112
364111
  const annotations = this.getAnnotationsFromRepo(this.get('repoCr'), [
364113
364112
  'claim-ref',
364114
364113
  'revision',
364114
+ 'policy',
364115
+ 'sync-policy',
364115
364116
  'sync-enabled',
364116
364117
  'sync-period',
364118
+ 'sync-schedule',
364119
+ 'sync-schedule-timezone',
364117
364120
  ]);
364118
364121
  cr.metadata.annotations = {
364119
364122
  ...cr.metadata.annotations,
@@ -364186,8 +364189,12 @@ class RepoSecretsSectionChart extends BaseGithubChart {
364186
364189
  const annotations = this.getAnnotationsFromRepo(this.get('repoCr'), [
364187
364190
  'claim-ref',
364188
364191
  'revision',
364192
+ 'policy',
364193
+ 'sync-policy',
364189
364194
  'sync-enabled',
364190
364195
  'sync-period',
364196
+ 'sync-schedule',
364197
+ 'sync-schedule-timezone',
364191
364198
  ]);
364192
364199
  cr.metadata.annotations = {
364193
364200
  ...cr.metadata.annotations,
@@ -371209,6 +371216,11 @@ function getPolicy(item, annotation) {
371209
371216
  return policy;
371210
371217
  }
371211
371218
 
371219
+ ;// CONCATENATED MODULE: ../operator/src/utils/operationErrorMessages.ts
371220
+ const APPLY_DEFAULT_ERROR_MESSAGE = 'An error occurred while executing the Terraform apply operation.';
371221
+ const DESTROY_DEFAULT_ERROR_MESSAGE = 'An error occurred while executing the Terraform destroy operation.';
371222
+ const PLAN_DEFAULT_ERROR_MESSAGE = 'An error occurred while executing the Terraform plan operation.';
371223
+
371212
371224
  ;// CONCATENATED MODULE: ../operator/cdktf.ts
371213
371225
 
371214
371226
 
@@ -371220,6 +371232,7 @@ function getPolicy(item, annotation) {
371220
371232
 
371221
371233
 
371222
371234
  const cdktf_LAST_STATE_PR_ANNOTATION = 'firestartr.dev/last-state-pr';
371235
+
371223
371236
  function processOperation(item, op, handler) {
371224
371237
  operator_src_logger.info(`Processing operation ${op} on ${item.kind}/${item.metadata?.name}`);
371225
371238
  try {
@@ -371396,7 +371409,7 @@ async function* markedToDeletion(item, op, handler) {
371396
371409
  reason: op,
371397
371410
  type: 'ERROR',
371398
371411
  status: 'True',
371399
- message: e.toString(),
371412
+ message: DESTROY_DEFAULT_ERROR_MESSAGE,
371400
371413
  };
371401
371414
  // if there is a current checkRun working
371402
371415
  // we close it with an error
@@ -371547,21 +371560,21 @@ async function* doApply(item, op, handler) {
371547
371560
  reason: op,
371548
371561
  type: 'ERROR',
371549
371562
  status: 'True',
371550
- message: error.toString(),
371563
+ message: APPLY_DEFAULT_ERROR_MESSAGE,
371551
371564
  };
371552
371565
  yield {
371553
371566
  item,
371554
371567
  reason: op,
371555
371568
  type: 'PROVISIONED',
371556
371569
  status: 'False',
371557
- message: error.toString(),
371570
+ message: APPLY_DEFAULT_ERROR_MESSAGE,
371558
371571
  };
371559
371572
  yield {
371560
371573
  item,
371561
371574
  reason: op,
371562
371575
  type: 'PROVISIONING',
371563
371576
  status: 'False',
371564
- message: error.toString(),
371577
+ message: APPLY_DEFAULT_ERROR_MESSAGE,
371565
371578
  };
371566
371579
  handler.error();
371567
371580
  if (error) {
@@ -372793,6 +372806,7 @@ function tf_checkrun_helperCreateCheckRunName(cmd) {
372793
372806
 
372794
372807
 
372795
372808
 
372809
+
372796
372810
  const TF_PROJECTS_PATH = '/tmp/tfworkspaces';
372797
372811
  function process_operation_processOperation(item, op, handler) {
372798
372812
  try {
@@ -372928,28 +372942,28 @@ async function* doPlanJSONFormat(item, op, handler) {
372928
372942
  reason: op,
372929
372943
  type: 'PROVISIONED',
372930
372944
  status: 'False',
372931
- message: JSON.stringify(e),
372945
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
372932
372946
  };
372933
372947
  yield {
372934
372948
  item,
372935
372949
  reason: op,
372936
372950
  type: 'PLANNING',
372937
372951
  status: 'False',
372938
- message: JSON.stringify(e),
372952
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
372939
372953
  };
372940
372954
  yield {
372941
372955
  item,
372942
372956
  reason: op,
372943
372957
  type: 'OUT_OF_SYNC',
372944
372958
  status: 'False',
372945
- message: 'Error observing item',
372959
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
372946
372960
  };
372947
372961
  yield {
372948
372962
  item,
372949
372963
  reason: op,
372950
372964
  type: 'ERROR',
372951
372965
  status: 'True',
372952
- message: JSON.stringify(e),
372966
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
372953
372967
  };
372954
372968
  const summaryText = tryCreateErrorSummary('Terraform Plan failed', e);
372955
372969
  if (item.metadata.annotations['firestartr.dev/last-state-pr'] || false) {
@@ -373115,7 +373129,7 @@ async function* process_operation_markedToDeletion(item, op, handler) {
373115
373129
  reason: op,
373116
373130
  type: 'ERROR',
373117
373131
  status: 'True',
373118
- message: e.toString(),
373132
+ message: DESTROY_DEFAULT_ERROR_MESSAGE,
373119
373133
  };
373120
373134
  await handler.writeTerraformOutputInTfResult(item, e);
373121
373135
  if (item.metadata.annotations['firestartr.dev/last-state-pr'] || false) {
@@ -373233,21 +373247,21 @@ async function* process_operation_doApply(item, op, handler) {
373233
373247
  reason: op,
373234
373248
  type: 'ERROR',
373235
373249
  status: 'True',
373236
- message: JSON.stringify(e),
373250
+ message: APPLY_DEFAULT_ERROR_MESSAGE,
373237
373251
  };
373238
373252
  yield {
373239
373253
  item,
373240
373254
  reason: op,
373241
373255
  type: 'PROVISIONED',
373242
373256
  status: 'False',
373243
- message: JSON.stringify(e),
373257
+ message: APPLY_DEFAULT_ERROR_MESSAGE,
373244
373258
  };
373245
373259
  yield {
373246
373260
  item,
373247
373261
  reason: op,
373248
373262
  type: 'PROVISIONING',
373249
373263
  status: 'False',
373250
- message: JSON.stringify(e),
373264
+ message: APPLY_DEFAULT_ERROR_MESSAGE,
373251
373265
  };
373252
373266
  handler.error();
373253
373267
  if (e) {
@@ -373610,6 +373624,7 @@ async function acquireLease(namespace, cb, interval = 10000) {
373610
373624
 
373611
373625
 
373612
373626
 
373627
+
373613
373628
  const processOperationPlan_TF_PROJECTS_PATH = '/tmp/tfworkspaces';
373614
373629
  function processOperationPlan(item, op, handler) {
373615
373630
  try {
@@ -373723,21 +373738,21 @@ async function* doPlanPlainTextFormat(item, op, handler, action) {
373723
373738
  reason: op,
373724
373739
  type: 'PROVISIONED',
373725
373740
  status: 'False',
373726
- message: JSON.stringify(e),
373741
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373727
373742
  };
373728
373743
  yield {
373729
373744
  item,
373730
373745
  reason: op,
373731
373746
  type: 'PLANNING',
373732
373747
  status: 'False',
373733
- message: JSON.stringify(e),
373748
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373734
373749
  };
373735
373750
  yield {
373736
373751
  item,
373737
373752
  reason: op,
373738
373753
  type: 'ERROR',
373739
373754
  status: 'True',
373740
- message: JSON.stringify(e),
373755
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373741
373756
  };
373742
373757
  const summaryText = tryCreateErrorSummary('Terraform Plan failed', e);
373743
373758
  if (item.metadata.annotations['firestartr.dev/last-state-pr'] || false) {
@@ -373841,28 +373856,28 @@ async function* processOperationPlan_doPlanJSONFormat(item, op, handler, action)
373841
373856
  reason: op,
373842
373857
  type: 'PROVISIONED',
373843
373858
  status: 'False',
373844
- message: JSON.stringify(e),
373859
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373845
373860
  };
373846
373861
  yield {
373847
373862
  item,
373848
373863
  reason: op,
373849
373864
  type: 'PLANNING',
373850
373865
  status: 'False',
373851
- message: JSON.stringify(e),
373866
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373852
373867
  };
373853
373868
  yield {
373854
373869
  item,
373855
373870
  reason: op,
373856
373871
  type: 'OUT_OF_SYNC',
373857
373872
  status: 'False',
373858
- message: 'Error observing item',
373873
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373859
373874
  };
373860
373875
  yield {
373861
373876
  item,
373862
373877
  reason: op,
373863
373878
  type: 'ERROR',
373864
373879
  status: 'True',
373865
- message: JSON.stringify(e),
373880
+ message: PLAN_DEFAULT_ERROR_MESSAGE,
373866
373881
  };
373867
373882
  void handler.error();
373868
373883
  if (e) {
@@ -0,0 +1,3 @@
1
+ export declare const APPLY_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Terraform apply operation.";
2
+ export declare const DESTROY_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Terraform destroy operation.";
3
+ export declare const PLAN_DEFAULT_ERROR_MESSAGE = "An error occurred while executing the Terraform plan operation.";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.53.0-snapshot-6",
3
+ "version": "1.53.0-snapshot-8",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",