From 5aabcdab7f9ef08c7957fb2f8bc2a87b8d74d63b Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Tue, 19 Mar 2024 10:19:44 +0100 Subject: [PATCH 1/2] chore(go/client): allow up to 4 volumes per service replica (#137) Signed-off-by: Artur Troian --- go/node/types/constants/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/node/types/constants/constants.go b/go/node/types/constants/constants.go index ac28aae8..ef99ff5b 100644 --- a/go/node/types/constants/constants.go +++ b/go/node/types/constants/constants.go @@ -1,5 +1,5 @@ package constants const ( - DefaultMaxGroupVolumes = 2 + DefaultMaxGroupVolumes = 4 ) From 5d4de1d21a70be249e8b7eb760d5b7d9c5e52893 Mon Sep 17 00:00:00 2001 From: Artur Troian Date: Wed, 27 Mar 2024 15:20:49 +0100 Subject: [PATCH 2/2] fix(manifest): resources count when mapping resources to resources group (#140) Signed-off-by: Artur Troian --- go/manifest/v2beta2/group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/manifest/v2beta2/group.go b/go/manifest/v2beta2/group.go index 0c94d977..09ee3e1c 100644 --- a/go/manifest/v2beta2/group.go +++ b/go/manifest/v2beta2/group.go @@ -21,7 +21,7 @@ func (g Group) GetResourceUnits() dtypes.ResourceUnits { if _, exists := groups[svc.Resources.ID]; !exists { groups[svc.Resources.ID] = &dtypes.ResourceUnit{ Resources: svc.Resources, - Count: 1, + Count: svc.Count, } } else { groups[svc.Resources.ID].Count += svc.Count