Skip to content

Enforce scope-priority-based tie-breaking for overlapping auto-select runtimes #594

Open

Description

@YouNeedCryDear

What to build

The runtime auto-selection must handle cases where multiple runtimes overlap on their supported model format and model size range. If overlapping runtimes have autoSelect: true, we must ensure that their priorities are explicitly different. When a user creates an inference service without explicitly specifying a runtime, exactly one runtime—the one with the highest priority—must be auto-selected.

Acceptance criteria

  • The ClusterServingRuntimeValidator and ServingRuntimeValidator webhooks must ensure that if multiple runtimes (even cross-scope between ServingRuntime and ClusterServingRuntime) have autoSelect: true and overlap on SupportedModelFormat and ModelSizeRange, they must have different priorities.
  • If priorities are omitted, the webhook should handle defaults safely or enforce that priority is explicitly specified when an overlap occurs.
  • The runtime selector (pkg/runtimeselector/) correctly honors this priority and strictly auto-selects the runtime with the highest priority when overlaps occur.
  • Existing webhook and selector unit tests are updated to verify the priority overlap rejection and priority-based selection logic.

Blocked by

None - can start immediately

Activity

  1. changed the title [-]Reject overlapping auto-select configurations in ServingRuntime and ClusterServingRuntime webhooks[/-] [+]Enforce priority-based tie-breaking for overlapping auto-select runtimes[/+] on Apr 29, 2026
  2. changed the title [-]Enforce priority-based tie-breaking for overlapping auto-select runtimes[/-] [+]Enforce scope-priority-based tie-breaking for overlapping auto-select runtimes[/+] on May 9, 2026
  3. added a commit that references this issue on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions