do not remove publications of slot defined in manifest (#2868)

* do not remove publications of slot defined in manifest
* improve condition to sync streams
* init publication tables map when adding manifest slots
* need to update c.Stream when there is no update
This commit is contained in:
Felix Kunde
2025-02-26 17:31:37 +01:00
committed by GitHub
parent 2a4be1cb39
commit 746df0d33d
4 changed files with 38 additions and 20 deletions
+1
View File
@@ -1160,6 +1160,7 @@ func (c *Cluster) Update(oldSpec, newSpec *acidv1.Postgresql) error {
// streams
if len(newSpec.Spec.Streams) > 0 || len(oldSpec.Spec.Streams) != len(newSpec.Spec.Streams) {
c.logger.Debug("syncing streams")
if err := c.syncStreams(); err != nil {
c.logger.Errorf("could not sync streams: %v", err)
updateFailed = true