Feature Description
Wire the ValidatingWebhookConfiguration for InferenceService that calls the #1094 decision function against live #1093 usage. Story 4 of #416.
Problem Statement
As an operator, I want over-quota InferenceServices rejected at admission with a clear error, and I want the quota to be un-bypassable if the webhook is down.
Proposed Solution
Add internal/webhook/inferenceservice_admit.go:
- Validating webhook on
inferenceservices.inference.llmkube.dev (CREATE/UPDATE).
- Resolve applicable
GPUQuota(s), read current usage, call quota.Decide(...), return deny with the reason on failure.
- Increment
GPUQuota.Status.AdmissionDenials and set LastDenial on rejects.
failurePolicy: Fail so a webhook outage denies rather than silently allows.
- Register in
cmd/ manager; add config/webhook wiring.
Acceptance Criteria (provable in-workspace)
Dependencies
Priority
Feature Description
Wire the
ValidatingWebhookConfigurationforInferenceServicethat calls the #1094 decision function against live #1093 usage. Story 4 of #416.Problem Statement
Proposed Solution
Add
internal/webhook/inferenceservice_admit.go:inferenceservices.inference.llmkube.dev(CREATE/UPDATE).GPUQuota(s), read current usage, callquota.Decide(...), return deny with the reason on failure.GPUQuota.Status.AdmissionDenialsand setLastDenialon rejects.failurePolicy: Failso a webhook outage denies rather than silently allows.cmd/manager; addconfig/webhookwiring.Acceptance Criteria (provable in-workspace)
LastDenialupdate on reject.make testandmake lintpass; cross-arch lint clean.Dependencies
Priority