mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-18 18:28:18 -05:00
Merge pull request #136971 from sunya-ch/follow-up-rename
DRA: Rename GetBaseDeviceID to GetDeviceID for SharedDeviceID
This commit is contained in:
commit
4ae98b99c0
2 changed files with 2 additions and 2 deletions
|
|
@ -301,7 +301,7 @@ func (c *claimTracker) GatherAllocatedState() (*structured.AllocatedState, error
|
|||
// This ensures backward compatibility with the original DRA behavior where devices
|
||||
// could only be allocated exclusively to a single claim.
|
||||
for sharedDeviceID := range allocatedSharedDeviceIDs {
|
||||
allocated.Insert(sharedDeviceID.GetBaseDeviceID())
|
||||
allocated.Insert(sharedDeviceID.GetDeviceID())
|
||||
}
|
||||
// Reset allocatedSharedDeviceIDs and aggregatedCapacity
|
||||
allocatedSharedDeviceIDs = sets.New[structured.SharedDeviceID]()
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ func (d SharedDeviceID) String() string {
|
|||
return deviceIDStr
|
||||
}
|
||||
|
||||
func (d SharedDeviceID) GetBaseDeviceID() DeviceID {
|
||||
func (d SharedDeviceID) GetDeviceID() DeviceID {
|
||||
return MakeDeviceID(d.Driver.String(), d.Pool.String(), d.Device.String())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue