@@ -107,7 +107,6 @@ func CreatePGBackRestConfigMapIntent(ctx context.Context, postgresCluster *v1bet
107107 cm .Data [CMInstanceKey ] = iniGeneratedWarning +
108108 populatePGInstanceConfigurationMap (
109109 serviceName , serviceNamespace , repoHostName , pgdataDir ,
110- fmt .Sprint (postgresCluster .Spec .PostgresVersion ),
111110 pgPort , postgresCluster .Spec .Backups .PGBackRest .Repos ,
112111 postgresCluster .Spec .Backups .PGBackRest .Global ,
113112 util .GetPGBackRestLogPathForInstance (postgresCluster ),
@@ -127,7 +126,7 @@ func CreatePGBackRestConfigMapIntent(ctx context.Context, postgresCluster *v1bet
127126 cm .Data [CMRepoKey ] = iniGeneratedWarning +
128127 populateRepoHostConfigurationMap (
129128 serviceName , serviceNamespace ,
130- pgdataDir , fmt .Sprint (postgresCluster .Spec .PostgresVersion ),
129+ fmt .Sprint (postgresCluster .Spec .PostgresVersion ),
131130 pgPort , instanceNames ,
132131 postgresCluster .Spec .Backups .PGBackRest .Repos ,
133132 postgresCluster .Spec .Backups .PGBackRest .Global ,
@@ -156,7 +155,7 @@ func CreatePGBackRestConfigMapIntent(ctx context.Context, postgresCluster *v1bet
156155 if CloudRepoDefined (postgresCluster ) {
157156 cm .Data [CMCloudRepoKey ] = iniGeneratedWarning +
158157 populateCloudRepoConfigurationMap (
159- serviceName , serviceNamespace , pgdataDir ,
158+ serviceName , serviceNamespace ,
160159 fmt .Sprint (postgresCluster .Spec .PostgresVersion ),
161160 cloudLogPath , pgPort , instanceNames ,
162161 postgresCluster .Spec .Backups .PGBackRest .Repos ,
@@ -361,8 +360,8 @@ exit 1`
361360// populatePGInstanceConfigurationMap returns options representing the pgBackRest configuration for
362361// a PostgreSQL instance
363362func populatePGInstanceConfigurationMap (
364- serviceName , serviceNamespace , repoHostName , pgdataDir ,
365- postgresVersion string , pgPort int32 , repos []v1beta1.PGBackRestRepo ,
363+ serviceName , serviceNamespace , repoHostName , pgdataDir string ,
364+ pgPort int32 , repos []v1beta1.PGBackRestRepo ,
366365 globalConfig map [string ]string , pgBackRestLogPath string ,
367366) iniSectionSet {
368367
@@ -424,7 +423,7 @@ func populatePGInstanceConfigurationMap(
424423// populateRepoHostConfigurationMap returns options representing the pgBackRest configuration for
425424// a pgBackRest dedicated repository host
426425func populateRepoHostConfigurationMap (
427- serviceName , serviceNamespace , pgdataDir , postgresVersion string ,
426+ serviceName , serviceNamespace , pgdataDir string ,
428427 pgPort int32 , pgHosts []string , repos []v1beta1.PGBackRestRepo ,
429428 globalConfig map [string ]string , logPath string ,
430429) iniSectionSet {
@@ -482,7 +481,7 @@ func populateRepoHostConfigurationMap(
482481}
483482
484483func populateCloudRepoConfigurationMap (
485- serviceName , serviceNamespace , pgdataDir , postgresVersion , logPath string ,
484+ serviceName , serviceNamespace , pgdataDir , logPath string ,
486485 pgPort int32 , pgHosts []string , repos []v1beta1.PGBackRestRepo ,
487486 globalConfig map [string ]string ,
488487) iniSectionSet {
0 commit comments