From ea4e607f2fb35694afd08192f2fd3fe31b66226f Mon Sep 17 00:00:00 2001 From: David Fattakhov Date: Sun, 21 May 2023 16:14:10 +0300 Subject: [PATCH] Updated variable nodesCount-->replicasCount --- cbcontainers/state/components/runtime_resolver_deployment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cbcontainers/state/components/runtime_resolver_deployment.go b/cbcontainers/state/components/runtime_resolver_deployment.go index 4a42ca3f..3f9dd247 100644 --- a/cbcontainers/state/components/runtime_resolver_deployment.go +++ b/cbcontainers/state/components/runtime_resolver_deployment.go @@ -237,7 +237,7 @@ func (obj *ResolverDeploymentK8sObject) getDynamicReplicasCount(nodesToReplicasR if err := obj.APIReader.List(context.Background(), nodesList); err != nil || nodesList.Items == nil || len(nodesList.Items) < 1 { return nil, fmt.Errorf("error getting list of nodes: %v", err) } - nodesCount := int32(math.Ceil(float64(len(nodesList.Items)) / float64(nodesToReplicasRatio))) + replicasCount := int32(math.Ceil(float64(len(nodesList.Items)) / float64(nodesToReplicasRatio))) - return &nodesCount, nil + return &replicasCount, nil }