Rename replicas to avoid potential confusion about terminology

This commit is contained in:
Dmitrii Dolgov
2020-02-13 16:34:02 +01:00
parent e2664843ba
commit e11f787664
18 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -1861,9 +1861,9 @@ func (c *Cluster) generateConnPoolDeployment(spec *acidv1.PostgresSpec) (
*appsv1.Deployment, error) {
podTemplate, err := c.generateConnPoolPodTemplate(spec)
numberOfInstances := spec.ConnectionPool.Replicas
numberOfInstances := spec.ConnectionPool.NumberOfInstances
if numberOfInstances == nil {
numberOfInstances = c.OpConfig.ConnectionPool.Replicas
numberOfInstances = c.OpConfig.ConnectionPool.NumberOfInstances
}
if err != nil {
+2 -2
View File
@@ -99,14 +99,14 @@ func TestConnPoolSynchronization(t *testing.T) {
oldSpec: &acidv1.Postgresql{
Spec: acidv1.PostgresSpec{
ConnectionPool: &acidv1.ConnectionPool{
Replicas: int32ToPointer(1),
NumberOfInstances: int32ToPointer(1),
},
},
},
newSpec: &acidv1.Postgresql{
Spec: acidv1.PostgresSpec{
ConnectionPool: &acidv1.ConnectionPool{
Replicas: int32ToPointer(2),
NumberOfInstances: int32ToPointer(2),
},
},
},