Skip to content

Mesh contact address#541

Open
Sam6734 wants to merge 2 commits into
interlink-hq:mainfrom
Sam6734:mesh-contact-address
Open

Mesh contact address#541
Sam6734 wants to merge 2 commits into
interlink-hq:mainfrom
Sam6734:mesh-contact-address

Conversation

@Sam6734

@Sam6734 Sam6734 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Dask workers all use the same private WireGuard address, 10.7.0.2, so the HTCondor plugin needs a way to tell the scheduler how to reach each individual worker. This change adds each worker’s unique Kubernetes shadow service address to the generated mesh script, allowing the plugin to advertise the correct worker endpoint.

interlink-hq/interlink-htcondor-plugin#32 depends on this change.

Sam6734 added 2 commits July 15, 2026 09:38
Signed-off-by: Sam <55770131+Sam6734@users.noreply.github.com>
Signed-off-by: Sam <55770131+Sam6734@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 16, 2026 15:23
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for interlink-dev canceled.

Name Link
🔨 Latest commit 720331a
🔍 Latest deploy log https://app.netlify.com/projects/interlink-dev/deploys/6a58f787dd7d020008b5d1c1

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a per-worker “mesh contact address” to the generated mesh bootstrap script so downstream components (notably the interlink-htcondor-plugin) can identify and advertise the correct Kubernetes shadow Service endpoint for each worker, instead of relying on the shared WireGuard IP.

Changes:

  • Added MeshContactHost to MeshScriptTemplateData and populated it from the shadow Service’s fully-qualified DNS name.
  • Exported INTERLINK_MESH_CONTACT_HOST in the mesh script template for consumption by tooling running inside the network namespace.
  • Added a unit test to validate the mesh template renders the expected export line.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
pkg/virtualkubelet/virtualkubelet.go Extends mesh template data with MeshContactHost.
pkg/virtualkubelet/templates/mesh.sh Exports INTERLINK_MESH_CONTACT_HOST inside the mesh namespace script.
pkg/virtualkubelet/mesh.go Populates MeshContactHost as <service>.<namespace>.svc.cluster.local.
pkg/virtualkubelet/mesh_template_test.go Adds coverage to ensure the template exports the contact host variable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants