@checkstack/gitops-backend 0.2.1 → 0.2.2
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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/src/sync/reconciler.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @checkstack/gitops-backend
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b53a40e: Fix GitOps entity update failures due to pending error records
|
|
8
|
+
|
|
9
|
+
- Ensured the `existingEntityId` parameter in the Reconciler engine is set to `undefined` instead of a `"pending-UUID"` when handling entities that failed to sync initially.
|
|
10
|
+
- Hardened the `Healthcheck` GitOps kind logic to explicitly ignore `"pending-"` IDs, preventing SQL update errors on synthetic provenance IDs.
|
|
11
|
+
- Fixed a bug where resolving YAML syntax errors would cause the subsequent sync to fail with `failed query: update [...]` because it attempted to update the nonexistent `"pending-"` entity instead of creating a new one.
|
|
12
|
+
|
|
3
13
|
## 0.2.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
package/src/sync/reconciler.ts
CHANGED
|
@@ -308,7 +308,7 @@ async function reconcileEntity(params: {
|
|
|
308
308
|
// Plugins use context.resolveSecretsBySchema() to resolve specific fields.
|
|
309
309
|
const reconcileResult = await kindDef.reconcile({
|
|
310
310
|
entity: entity as typeof entity & { spec: Record<string, unknown> },
|
|
311
|
-
existingEntityId: existing
|
|
311
|
+
existingEntityId: existing && !existing.entityId.startsWith("pending-") ? existing.entityId : undefined,
|
|
312
312
|
context,
|
|
313
313
|
});
|
|
314
314
|
|