Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(wrc): bring the NetworkPolicy retry and resolved-at comments up to date
Alfredo Lopezc584ee2d4b06
diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex cf0066dbb..c9c0dff6f 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.387",+ "version": "0.1.388","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.387",+ "version": "0.1.388","license": "SEE LICENSE IN LICENSE","dependencies": {"@aws-sdk/client-s3": "^3.1009.0",diff --git a/workflow-recipes/package.json b/workflow-recipes/package.jsonindex e362e5958..3e12d42bc 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.387",+ "version": "0.1.388","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts b/workflow-recipes/src/reconciler/workflowRecipeReconciler.tsindex 2925e2382..9215fe06a 100644--- a/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts+++ b/workflow-recipes/src/reconciler/workflowRecipeReconciler.ts@@ -2998,8 +2998,9 @@ export class WorkflowRecipeReconciler {pluginWorkloadSdkBootstrapProof: sdkOnlyRuntime?.pluginWorkloadSdkBootstrapProof,// Issue #637 — requeue if a denied workload's teardown failed (deniedTeardownFailed),// so the revocation is retried rather than left to the next event.- // A NetworkPolicy left unwritten because it is being deleted is retried- // the same way; an ownership conflict is not.+ // A NetworkPolicy left unwritten (being deleted, vanished before the+ // replace, or conflicted twice) is retried the same way; an ownership+ // conflict is not.requeueAfterMs:legacyRawCleanupPending ||deniedTeardownFailed ||diff --git a/workflow-recipes/src/workflow/pluginWorkloadSdkProvisioner.ts b/workflow-recipes/src/workflow/pluginWorkloadSdkProvisioner.tsindex 3bc48d97f..c729b8b16 100644--- a/workflow-recipes/src/workflow/pluginWorkloadSdkProvisioner.ts+++ b/workflow-recipes/src/workflow/pluginWorkloadSdkProvisioner.ts@@ -51,7 +51,9 @@ export type EagerSdkMcpHostStatus =/*** What one `applyWorkflowNetworkPolicies` pass could not converge. A conflict* names a live policy another controller owns; WRC leaves it untouched. A- * pending retry means a policy was mid-deletion and needs a later pass.+ * pending retry means a policy was left unwritten for a later pass: it was+ * being deleted, it vanished before the replace, or the replace conflicted+ * twice.*/export type WorkflowNetworkPolicyApplySummary = {conflicts: { policy: string; reason: string }[]diff --git a/workflow-recipes/src/workflow/workflowReconciler.ts b/workflow-recipes/src/workflow/workflowReconciler.tsindex 814b76493..25593b572 100644--- a/workflow-recipes/src/workflow/workflowReconciler.ts+++ b/workflow-recipes/src/workflow/workflowReconciler.ts@@ -3350,6 +3350,8 @@ export class WorkflowReconciler {// Observability only; policy decisions use current/previous CIDR annotations above.// The key records the last change of the resolved set, not the last resolution:// stamping every pass made each refresh a replace of an otherwise converged policy.+ // A pass that finds any sibling policy missing, or no parseable live value,+ // stamps the current time on every policy, so the siblings are replaced once.annotations[RUNTIME_HTTP_EGRESS_RESOLVED_AT_ANNOTATION] = (unchangedRuntimeHttpEgressResolvedAt(liveAnnotationSets, annotations) ?? now).toISOString()