Skip to content

Commit

Permalink
fix(inventory): incorrect parameter for GPU object in inventory snaps…
Browse files Browse the repository at this point in the history
…hot (#221)

Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian authored Mar 27, 2024
1 parent 9b8e1a6 commit 7a06ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/types/v1beta3/clients/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ func (inv *inventory) Snapshot() inventoryV1.Cluster {
Quantity: inventoryV1.NewResourcePair(nd.memory.allocatable.Int64(), nd.memory.allocated.Int64(), resource.DecimalSI),
},
GPU: inventoryV1.GPU{
Quantity: inventoryV1.NewResourcePair(nd.gpu.allocatable.Int64(), nd.memory.allocated.Int64(), resource.DecimalSI),
Quantity: inventoryV1.NewResourcePair(nd.gpu.allocatable.Int64(), nd.gpu.allocated.Int64(), resource.DecimalSI),
},
EphemeralStorage: inventoryV1.NewResourcePair(nd.ephemeralStorage.allocatable.Int64(), nd.ephemeralStorage.allocated.Int64(), resource.DecimalSI),
VolumesAttached: inventoryV1.NewResourcePair(0, 0, resource.DecimalSI),
Expand Down

0 comments on commit 7a06ee4

Please sign in to comment.