mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-06 02:13:23 +02:00
Rename replicas to avoid potential confusion about terminology
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user