@firestartr/cli 2.6.1 → 2.6.3-snapshot-4

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
@@ -288758,6 +288758,7 @@ class GithubRepositoryChart extends BaseGithubChart {
288758
288758
  archiveOnDestroy: claim.providers.github.archiveOnDestroy,
288759
288759
  allowUpdateBranch: claim.providers.github.allowUpdateBranch,
288760
288760
  hasIssues: claim.providers.github.hasIssues,
288761
+ hasWiki: claim.providers.github.hasWiki,
288761
288762
  visibility: claim.providers.github.visibility,
288762
288763
  defaultBranch: claim.providers.github?.branchStrategy?.defaultBranch,
288763
288764
  codeowners: createCodeOwnersData(claim),
@@ -293108,17 +293109,46 @@ async function updateSyncTransition(itemPath, reason, lastSyncTime, nextSyncTime
293108
293109
  }
293109
293110
  async function updateRetryStatusInCR(pluralKind, namespace, name, retryCount, nextRetryTime) {
293110
293111
  const itemPath = `${namespace}/${pluralKind}/${name}`;
293111
- const item = await getItemByItemPath(itemPath);
293112
- if (!('status' in item) || item.status === null)
293113
- item.status = {};
293114
- item.status.retryCount = retryCount;
293115
- if (nextRetryTime) {
293116
- item.status.nextRetryTime = nextRetryTime;
293112
+ try {
293113
+ const item = await getItemByItemPath(itemPath);
293114
+ if (!('status' in item) || item.status === null)
293115
+ item.status = {};
293116
+ item.status.retryCount = retryCount;
293117
+ if (nextRetryTime) {
293118
+ item.status.nextRetryTime = nextRetryTime;
293119
+ }
293120
+ else {
293121
+ delete item.status.nextRetryTime;
293122
+ }
293123
+ await writePrioritizedStatus(pluralKind, namespace, item);
293117
293124
  }
293118
- else {
293119
- delete item.status.nextRetryTime;
293125
+ catch (e) {
293126
+ if (isKubernetesNotFoundError(e)) {
293127
+ operator_src_logger.info(`Skipping retry status update for '${itemPath}' because the custom resource was not found.`);
293128
+ return;
293129
+ }
293130
+ throw e;
293120
293131
  }
293121
- await writePrioritizedStatus(pluralKind, namespace, item);
293132
+ }
293133
+ function isKubernetesNotFoundError(error) {
293134
+ if (typeof error === 'string') {
293135
+ return isNotFoundMessage(error);
293136
+ }
293137
+ if (!error || typeof error !== 'object') {
293138
+ return false;
293139
+ }
293140
+ const k8sError = error;
293141
+ return (k8sError.code === 404 ||
293142
+ k8sError.status === 404 ||
293143
+ k8sError.statusCode === 404 ||
293144
+ k8sError.response?.status === 404 ||
293145
+ k8sError.response?.statusCode === 404 ||
293146
+ k8sError.body?.code === 404 ||
293147
+ k8sError.body?.reason === 'NotFound' ||
293148
+ isNotFoundMessage(k8sError.message));
293149
+ }
293150
+ function isNotFoundMessage(message) {
293151
+ return typeof message === 'string' && /\bnot\s*found\b/i.test(message);
293122
293152
  }
293123
293153
  async function writePrioritizedStatus(kind, namespace, item) {
293124
293154
  setHighPriorityStatus(item);
@@ -303529,9 +303559,9 @@ const crs_analyzerSubcommand = {
303529
303559
  };
303530
303560
 
303531
303561
  ;// CONCATENATED MODULE: ./package.json
303532
- const package_namespaceObject = {"i8":"2.6.1"};
303562
+ const package_namespaceObject = JSON.parse('{"i8":"2.6.3-snapshot-4"}');
303533
303563
  ;// CONCATENATED MODULE: ../../package.json
303534
- const package_namespaceObject_1 = {"i8":"2.6.1"};
303564
+ const package_namespaceObject_1 = {"i8":"2.6.2"};
303535
303565
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
303536
303566
 
303537
303567
 
@@ -21,6 +21,7 @@ export interface IGithubRepositoryClaim extends IComponentClaim {
21
21
  archiveOnDestroy: boolean;
22
22
  allowUpdateBranch: boolean;
23
23
  hasIssues: boolean;
24
+ hasWiki: boolean;
24
25
  features: IClaimInstalledFeature[];
25
26
  pages: IRepositoryPage;
26
27
  branchStrategy: IComponentClaimBranchStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.6.1",
3
+ "version": "2.6.3-snapshot-4",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",