Skip to content

Commit 6f07fa3

Browse files
committed
DRA scheduler: update some stale comments
1 parent ae6b552 commit 6f07fa3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ func (pl *DynamicResources) PreFilter(ctx context.Context, state *framework.Cycl
542542
// expensive, we may have to maintain and update state more
543543
// persistently.
544544
//
545-
// Claims are treated as "allocated" if they are in the assume cache
545+
// Claims (and thus their devices) are treated as "allocated" if they are in the assume cache
546546
// or currently their allocation is in-flight. This does not change
547547
// during filtering, so we can determine that once.
548548
allAllocatedDevices := pl.listAllAllocatedDevices(logger)

staging/src/k8s.io/dynamic-resource-allocation/structured/allocator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ type Allocator struct {
5353
// NewAllocator returns an allocator for a certain set of claims or an error if
5454
// some problem was detected which makes it impossible to allocate claims.
5555
//
56-
// The returned Allocator is stateless. It calls the listers anew for each
57-
// Allocate call.
56+
// The returned Allocator can be used multiple times and is thread-safe.
5857
func NewAllocator(ctx context.Context,
5958
adminAccessEnabled bool,
6059
claimsToAllocate []*resourceapi.ResourceClaim,

0 commit comments

Comments
 (0)