From f517ccd657fa4b14445213470e6a1b7980e94b9e Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Wed, 21 Aug 2024 17:19:58 -0500 Subject: [PATCH] fix(cluster): recover cluster params on provider restart Signed-off-by: Artur Troian --- cluster/inventory.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cluster/inventory.go b/cluster/inventory.go index c0095635..d7f6cf8c 100644 --- a/cluster/inventory.go +++ b/cluster/inventory.go @@ -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())