Skip to content

feat(orchestrator): pass through binding Service annotations and labels - #320

Merged
edenreich merged 1 commit into
mainfrom
feat/issue-318-20261102-1430
Nov 2, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/issue-318-20261102-1430

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Summary

Adds spec.daemon.binding.service.annotations and spec.daemon.binding.service.labels to the Orchestrator CRD. The reconciler copies them verbatim onto the <name>-binding Service, alongside the existing app: <name> label, and updates the live Service when they change. Keys the user did not set (for example a finalizer or annotation another controller added) are left untouched, because the reconcile only merges the requested keys instead of replacing the metadata maps.

The operator ships no VPN-specific keys or defaults, only the pass-through. The README binding section and examples/daemon/orchestrator.yaml document the new fields.

Closes #318

Changes

  • api/v1alpha1/orchestrator_types.go: new DaemonBindingServiceSpec with annotations and labels, hung off DaemonBindingSpec.Service
  • internal/controller/orchestrator_controller.go: reconcilePortService takes the metadata, merges it on create and update, and now also triggers an update when a requested label or annotation drifts
  • internal/controller/orchestrator_controller_test.go: envtest case covering create, a user-side change, and survival of a foreign annotation
  • Regenerated deepcopy, CRD, manifests/crds.yaml and manifests/install.yaml
  • README and example updated

Verification

  • task lint: 0 issues
  • task test: all packages pass, internal/controller coverage 73.1%
  • Not checked by hand with a live controller such as the Tailscale operator (no cluster in this run). The acceptance item "checked by hand with one controller that reads Service annotations" is left for a maintainer.

Downstream

  • inference-gateway/docs: CRD reference for the Orchestrator needs the new fields (docs issue filed alongside this PR)
  • inference-gateway/cli#1677: the CLI side of the same feature, unaffected by this change

Generated with Claude Code

@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner November 2, 2026 14:34
@edenreich
edenreich merged commit d543db8 into main Nov 2, 2026
1 check passed
@edenreich
edenreich deleted the feat/issue-318-20261102-1430 branch November 2, 2026 14:57
edenreich added a commit to inference-gateway/cli that referenced this pull request Nov 2, 2026
…s binding Service metadata (#1682)

Closes #1677

## What

- `address` on a `kind: kubernetes` workspace expands
`{{.Orchestrator}}` per session. A fixed `address` keeps working.
- New `binding_service.annotations` and `binding_service.labels` on a
kubernetes workspace, copied onto each Orchestrator's
`spec.daemon.binding.service` with `{{.Orchestrator}}` expanded in the
values (operator PR inference-gateway/operator#320). The CLI ships no
VPN-specific keys.
- A bad template fails `daemon.yaml` validation at daemon start.
`binding_service` on a non-kubernetes kind is rejected.
- Viper's key lowercasing is bypassed for the metadata maps, as it
already was for `env`.
- The strict-field upgrade hint names v0.33.0 when `binding_service` is
set, v0.29.0 otherwise.
- `docs/daemon.md` gets a "Sessions on the VPN" section with a Tailscale
and a NetBird setup.

TLS is unchanged: the dial pins the daemon CA and verifies the
Orchestrator name, which the pod certificate carries, so the overlay
host needs no certificate of its own.

## Not verified by hand

- Tailscale: needs the operator release that ships #320 (the next after
v0.32.0, assumed v0.33.0) and a bump of the cluster's operator first.
- NetBird: the per-pod DNS name a `SidecarProfile` peer gets for a
Sandbox pod is not checked, the docs say to use whatever name the
NetBird setup assigns.

## Cross-repo

- inference-gateway/operator: #320 must be released. If it lands as
something other than v0.33.0, fix `bindingServiceOperatorVersion` and
`docs/daemon.md`.
- inference-gateway/docs: `[DOCS]` ticket draft below, not filed.

<details>
<summary>[DOCS] draft</summary>

Title: [DOCS] daemon: per-session address and binding_service on
kubernetes workspaces

Body: The CLI's `kind: kubernetes` workspace now expands
`{{.Orchestrator}}` in `address` and takes `binding_service.annotations`
/ `binding_service.labels`, passed onto each Orchestrator's binding
Service (operator #320). Pages: the daemon / session teleport page and
the daemon.yaml reference. Show the Tailscale operator and NetBird
setups as in cli `docs/daemon.md` "Sessions on the VPN". Source:
#1677 and this PR.
</details>
inference-gateway-releaser Bot added a commit that referenced this pull request Nov 8, 2026
## [0.33.0](v0.32.0...v0.33.0) (2026-11-08)

### ✨ Features

* **gateway:** tune MCP health polling with spec.mcp.healthCheck ([#328](#328)) ([ff0867c](ff0867c))
* **orchestrator:** give spec.mcp.servers names and headers in the pod's mcp.yaml ([#324](#324)) ([56f4ff8](56f4ff8)), closes [#321](#321)
* **orchestrator:** pass through binding Service annotations and labels ([#320](#320)) ([d543db8](d543db8))

### ♻️ Improvements

* **orchestrator:** export the status contract from api/v1alpha1 ([#330](#330)) ([4b5d854](4b5d854))

### 🐛 Bug Fixes

* **examples:** serve the example MCP servers over stateless MCP 2026-07-28 ([#325](#325)) ([6d34978](6d34978)), closes [#323](#323)
* **samples:** make the Gateway and MCP samples pass CRD validation ([#329](#329)) ([e2e5d2a](e2e5d2a))

### 👷 CI

* **deps:** bump the gomod group with 4 updates ([#319](#319)) ([67f1bde](67f1bde))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.33.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Orchestrator: pass-through annotations and labels on the binding Service

1 participant