Skip to content

Conversation

RafiaSabih
Copy link
Contributor

Like the other resources, services, etc. sync statefulset when postgres version is upgraded.

if err := c.syncStatefulSet(); err != nil {
c.logger.Errorf("could not sync statefulSet: %v", err)
updateFailed = true
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c.syncStatefulSet() might be called again when comparing annotations further down. Maybe set a flag here to sync it only once?

@FxKu FxKu added this to the 1.6 milestone Dec 16, 2020
@FxKu FxKu added the bug label Dec 16, 2020
@FxKu
Copy link
Member

FxKu commented Dec 16, 2020

👍

1 similar comment
@RafiaSabih
Copy link
Contributor Author

👍

@RafiaSabih RafiaSabih merged commit f28706e into master Dec 16, 2020
@RafiaSabih RafiaSabih deleted the sync-sts-on-pgversion-update branch December 16, 2020 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants