fix(endpoint): stop annotating nodes with force-endpoint from InternalIP#24
Conversation
The reconciler set kilo.squat.ai/force-endpoint=<InternalIPv4> on every remote-cluster node that lacked an explicit endpoint source. For NAT'd tenants (OpenStack VMs without a routable internal address) this advertised an unreachable endpoint, breaking cross-cluster connectivity until a human manually overrode the annotation. Drop ensureNodeEndpoints/EnsureForceEndpoint and rely on the existing resolution chain: clustermesh-endpoint (set by the discovered-endpoint enrichment) > force-endpoint (if set manually) > NodeExternalIP. The operator no longer fabricates a wrong endpoint. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
📝 WalkthroughWalkthroughThe PR removes the ChangesRemove force-endpoint annotation patching
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request removes the ensureNodeEndpoints functionality, including the EnsureForceEndpoint implementation and its associated tests. It also adds an ensureScheme helper function to internal/kilonode/discovered_test.go. I have no feedback to provide on these changes.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
The reconciler set
kilo.squat.ai/force-endpoint=<InternalIPv4>on every remote-cluster node lacking an explicit endpoint source. For NAT'd tenants (OpenStack VMs whose internal IP is not routable across clusters) this advertised an unreachable endpoint and broke cross-cluster connectivity until manually overridden.Drop
ensureNodeEndpoints/EnsureForceEndpointand rely on the existing endpoint resolution chain:clustermesh-endpoint(populated by the discovered-endpoint enrichment) >force-endpoint(if set manually) >NodeExternalIP. The operator no longer fabricates a wrong endpoint; NAT'd nodes are reached via the discovered NAT egress.Summary by CodeRabbit
Release Notes