Skip to content

Commit 5252d71

Browse files
committed
Repo host rolling update is taken care of by the STS controller
1 parent fac7246 commit 5252d71

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

pkg/cluster/sync.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,19 +1599,6 @@ func (c *Cluster) syncPgbackrestRepoHostConfig(spec *cpov1.PostgresSpec) error {
15991599
if err := c.replaceStatefulSet(&curSts, desiredSts); err != nil {
16001600
return fmt.Errorf("could not replace pgbackrest repo-host statefulset: %v", err)
16011601
}
1602-
1603-
if cmp.rollingUpdate {
1604-
pods, err := c.listPodsOfType(TYPE_REPOSITORY)
1605-
if err != nil {
1606-
return fmt.Errorf("could not list pods of pgbackrest repo-host statefulset: %v", err)
1607-
}
1608-
for _, pod := range pods {
1609-
c.logger.Infof("Recreating repo host pod %v", pod.Name)
1610-
if _, err := c.recreatePod(util.NameFromMeta(pod.ObjectMeta)); err != nil {
1611-
return fmt.Errorf("could not recreate pgbackrest repo-host pod: %v", err)
1612-
}
1613-
}
1614-
}
16151602
}
16161603

16171604
if err = c.updatePgbackrestRepoHostConfig(); err != nil {

0 commit comments

Comments
 (0)