DRA scheduler: update some stale comments

This commit is contained in:
Patrick Ohly 2024-10-30 10:10:12 +01:00
parent ae6b5522ea
commit 6f07fa3a5e
2 changed files with 2 additions and 3 deletions

View File

@ -542,7 +542,7 @@ func (pl *DynamicResources) PreFilter(ctx context.Context, state *framework.Cycl
// expensive, we may have to maintain and update state more
// persistently.
//
// Claims are treated as "allocated" if they are in the assume cache
// Claims (and thus their devices) are treated as "allocated" if they are in the assume cache
// or currently their allocation is in-flight. This does not change
// during filtering, so we can determine that once.
allAllocatedDevices := pl.listAllAllocatedDevices(logger)

View File

@ -53,8 +53,7 @@ type Allocator struct {
// NewAllocator returns an allocator for a certain set of claims or an error if
// some problem was detected which makes it impossible to allocate claims.
//
// The returned Allocator is stateless. It calls the listers anew for each
// Allocate call.
// The returned Allocator can be used multiple times and is thread-safe.
func NewAllocator(ctx context.Context,
adminAccessEnabled bool,
claimsToAllocate []*resourceapi.ResourceClaim,