Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"threshold": 2,
"ignore": [
"**/.git/**",
"**/charts/*/templates/*/*.yaml",
"**/charts/*/templates/*/*/*.yaml",
"**/docs/examples/**"
]
"threshold": 2,
"ignore": [
"**/.git/**",
"**/charts/*/templates/*/*.yaml",
"**/charts/*/templates/*/*/*.yaml",
"**/docs/examples/**"
]
}
4 changes: 2 additions & 2 deletions operator/pkg/reconciler/patroni.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (r *PatroniReconciler) Reconcile() error {
return err
}
if localeVersion != newLocaleVersion || cr.Spec.Patroni.ForceCollationVersionUpgrade {
logger.Warn(fmt.Sprintf("New os locale version is %s, but previous was %s. A collation version mismatch occured in databases. Run locale fix script", newLocaleVersion, localeVersion))
logger.Warn(fmt.Sprintf("New os locale version is %s, but previous was %s. A collation version mismatch occurred in databases. Run locale fix script", newLocaleVersion, localeVersion))
err = r.runLocaleFixScript(pgVersion, newLocaleVersion, cr.Spec.Patroni.ForceCollationVersionUpgrade)
if err != nil {
return err
Expand Down Expand Up @@ -685,7 +685,7 @@ func fixBrokenIndexes(pgClient *pgClient.PostgresClient, db string, brokenIndNam

if len(remainingIndexes) > 0 {
logger.Error(fmt.Sprintf("Broken indexes %v still present in db: %s", remainingIndexes, db))
return fmt.Errorf("Broken indexes still present in db: %s", db)
return fmt.Errorf("broken indexes still present in db: %s", db)
}

logger.Info(fmt.Sprintf("Broken indexes fixed for db: %s", db))
Expand Down
Loading