Merge pull request #136971 from sunya-ch/follow-up-rename

DRA: Rename GetBaseDeviceID to GetDeviceID for SharedDeviceID
This commit is contained in:
Kubernetes Prow Robot 2026-02-12 12:18:00 +05:30 committed by GitHub
commit 4ae98b99c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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]()

View file

@ -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())
}