@@ -123,6 +123,7 @@ func CreatePGBackRestConfigMapIntent(ctx context.Context, postgresCluster *v1bet
123
123
serverConfig (postgresCluster ).String ()
124
124
125
125
if RepoHostVolumeDefined (postgresCluster ) && repoHostName != "" {
126
+ // Get pgbackrest log path for repo host pod
126
127
pgBackRestLogPath := generateRepoHostLogPath (postgresCluster )
127
128
128
129
cm .Data [CMRepoKey ] = iniGeneratedWarning +
@@ -137,8 +138,6 @@ func CreatePGBackRestConfigMapIntent(ctx context.Context, postgresCluster *v1bet
137
138
).String ()
138
139
139
140
if collector .OpenTelemetryLogsOrMetricsEnabled (ctx , postgresCluster ) {
140
- // Get pgbackrest log path for repo host pod
141
-
142
141
err = collector .AddToConfigMap (ctx , collector .NewConfigForPgBackrestRepoHostPod (
143
142
ctx ,
144
143
postgresCluster .Spec .Instrumentation ,
@@ -373,7 +372,7 @@ func populatePGInstanceConfigurationMap(
373
372
serviceName , serviceNamespace , repoHostName , pgdataDir ,
374
373
fetchKeyCommand , postgresVersion string ,
375
374
pgPort int32 , repos []v1beta1.PGBackRestRepo ,
376
- globalConfig map [string ]string , pgbackrestLogPath string ,
375
+ globalConfig map [string ]string , pgBackRestLogPath string ,
377
376
) iniSectionSet {
378
377
379
378
// TODO(cbandy): pass a FQDN in already.
@@ -389,7 +388,7 @@ func populatePGInstanceConfigurationMap(
389
388
// pgBackRest spool-path should always be co-located with the Postgres WAL path.
390
389
global .Set ("spool-path" , "/pgdata/pgbackrest-spool" )
391
390
// pgBackRest will log to the pgData volume for commands run on the PostgreSQL instance
392
- global .Set ("log-path" , pgbackrestLogPath )
391
+ global .Set ("log-path" , pgBackRestLogPath )
393
392
394
393
for _ , repo := range repos {
395
394
global .Set (repo .Name + "-path" , defaultRepo1Path + repo .Name )
0 commit comments