Skip to content

Commit

Permalink
fix(cluster): recover cluster params on provider restart
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Aug 21, 2024
1 parent 7e2a151 commit f517ccd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cluster/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ func newInventoryService(

reservations := make([]*reservation, 0, len(deployments))
for _, d := range deployments {
reservations = append(reservations, newReservation(d.LeaseID().OrderID(), d.ManifestGroup()))
res := newReservation(d.LeaseID().OrderID(), d.ManifestGroup())
res.SetClusterParams(d.ClusterParams())

reservations = append(reservations, res)
}

go is.lc.WatchChannel(ctx.Done())
Expand Down

0 comments on commit f517ccd

Please sign in to comment.