mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
DRA scheduler: update some stale comments
This commit is contained in:
parent
ae6b5522ea
commit
6f07fa3a5e
@ -542,7 +542,7 @@ func (pl *DynamicResources) PreFilter(ctx context.Context, state *framework.Cycl
|
|||||||
// expensive, we may have to maintain and update state more
|
// expensive, we may have to maintain and update state more
|
||||||
// persistently.
|
// 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
|
// or currently their allocation is in-flight. This does not change
|
||||||
// during filtering, so we can determine that once.
|
// during filtering, so we can determine that once.
|
||||||
allAllocatedDevices := pl.listAllAllocatedDevices(logger)
|
allAllocatedDevices := pl.listAllAllocatedDevices(logger)
|
||||||
|
@ -53,8 +53,7 @@ type Allocator struct {
|
|||||||
// NewAllocator returns an allocator for a certain set of claims or an error if
|
// 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.
|
// some problem was detected which makes it impossible to allocate claims.
|
||||||
//
|
//
|
||||||
// The returned Allocator is stateless. It calls the listers anew for each
|
// The returned Allocator can be used multiple times and is thread-safe.
|
||||||
// Allocate call.
|
|
||||||
func NewAllocator(ctx context.Context,
|
func NewAllocator(ctx context.Context,
|
||||||
adminAccessEnabled bool,
|
adminAccessEnabled bool,
|
||||||
claimsToAllocate []*resourceapi.ResourceClaim,
|
claimsToAllocate []*resourceapi.ResourceClaim,
|
||||||
|
Loading…
Reference in New Issue
Block a user