Repository navigation
feat(orchestrator): pass through binding Service annotations and labels - #320
Merged
Merged
Conversation
Co-authored-by: Eden Reich <[email protected]>
inference-gateway-maintainer
Bot
requested a review
from a team
as a code owner
November 2, 2026 14:34
This was referenced Nov 2, 2026
Closed
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))
Contributor
|
🎉 This PR is included in version 0.33.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
spec.daemon.binding.service.annotationsandspec.daemon.binding.service.labelsto the Orchestrator CRD. The reconciler copies them verbatim onto the<name>-bindingService, alongside the existingapp: <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.yamldocument the new fields.Closes #318
Changes
api/v1alpha1/orchestrator_types.go: newDaemonBindingServiceSpecwithannotationsandlabels, hung offDaemonBindingSpec.Serviceinternal/controller/orchestrator_controller.go:reconcilePortServicetakes the metadata, merges it on create and update, and now also triggers an update when a requested label or annotation driftsinternal/controller/orchestrator_controller_test.go: envtest case covering create, a user-side change, and survival of a foreign annotationmanifests/crds.yamlandmanifests/install.yamlVerification
task lint: 0 issuestask test: all packages pass,internal/controllercoverage 73.1%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 changeGenerated with Claude Code