Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/inftyai/scheduler
go 1.24.1

require (
github.com/google/go-cmp v0.7.0
github.com/inftyai/llmaz v0.1.3
k8s.io/api v0.33.1
k8s.io/apimachinery v0.33.1
Expand Down Expand Up @@ -38,7 +39,6 @@ require (
github.com/google/btree v1.1.3 // indirect
github.com/google/cel-go v0.23.2 // indirect
github.com/google/gnostic-models v0.6.9 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect
Expand Down
8 changes: 6 additions & 2 deletions pkg/plugins/resource_fungibility/resource_fungibility.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,9 @@ var (
resource = "openmodels"
)

// TODO: get the inference service to extract the flavors.
type ResourceFungibility struct {
handle framework.Handle
dynClient *dynamic.DynamicClient
dynClient dynamic.Interface
}

type flavor struct {
Expand Down Expand Up @@ -172,6 +171,11 @@ func (rf *ResourceFungibility) calPreFilterState(ctx context.Context, pod *v1.Po
}
}

if len(serviceFlavors) == 0 {
s.shouldSkip = true
return nil
}

for _, f := range serviceFlavors {
if len(f.NodeSelector) == 0 {
// Once nodeSelector is empty, which means all nodes are potential candidates,
Expand Down
Loading
Loading