Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(hcc): keep Role and Deployment matchers' comments next to each function
Alfredo Lopezfe34d17d7e30
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.jsonindex ae4172910..b8019e259 100644--- a/host-context-controller/package-lock.json+++ b/host-context-controller/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-host-context-controller",- "version": "0.1.256",+ "version": "0.1.257","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-host-context-controller",- "version": "0.1.256",+ "version": "0.1.257","license": "SEE LICENSE IN LICENSE","dependencies": {"@clerum/image-policy": "file:../packages/image-policy",diff --git a/host-context-controller/package.json b/host-context-controller/package.jsonindex de345e343..9a4977f96 100644--- a/host-context-controller/package.json+++ b/host-context-controller/package.json@@ -1,6 +1,6 @@{"name": "clerum-host-context-controller",- "version": "0.1.256",+ "version": "0.1.257","description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API","main": "dist/main.js","engines": {diff --git a/host-context-controller/src/hostReconciler.ts b/host-context-controller/src/hostReconciler.tsindex f5fbf95c5..42447a0c7 100644--- a/host-context-controller/src/hostReconciler.ts+++ b/host-context-controller/src/hostReconciler.ts@@ -4648,15 +4648,6 @@ export class HostReconciler {}}-/**- * Kubernetes persists server metadata and defaulted Deployment/PodSpec fields- * that HCC does not author. Remove only those known fields before comparing- * the objects; every HCC-authored field stays exact so an intentional removal- * or change still causes a rollout. Keep this allowlist conservative: an- * unknown admission mutation must compare as drift rather than be silently- * ignored. Pod-template annotations are merged by preserveDeploymentAnnotations- * before this comparison.- *//*** True when the desired Role matches the live object on the fields HCC authors:* `rbacLabels` and `rules` in author order. Server metadata and annotations are@@ -4689,6 +4680,15 @@ function canonicalizeLabelKeys(labels: Record<string, string>): Record<string, sreturn canonical}+/**+ * Kubernetes persists server metadata and defaulted Deployment/PodSpec fields+ * that HCC does not author. Remove only those known fields before comparing+ * the objects; every HCC-authored field stays exact so an intentional removal+ * or change still causes a rollout. Keep this allowlist conservative: an+ * unknown admission mutation must compare as drift rather than be silently+ * ignored. Pod-template annotations are merged by preserveDeploymentAnnotations+ * before this comparison.+ */function deploymentMatchesDesired(desired: k8s.V1Deployment, existing: k8s.V1Deployment): boolean {return (JSON.stringify(normalizeDeploymentForComparison(desired)) ===