-
Notifications
You must be signed in to change notification settings - Fork 67
K8SPG-260: Fix restart after upgrade #918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
inelpandzic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@egegunes pls check these failing tests.
|
|
||
| for pod in $(kubectl get pods -l postgres-operator.crunchydata.com/data=postgres --no-headers | awk '{print $1}'); do | ||
| local phase=$(kubectl -n ${NAMESPACE} get ${pod} -o jsonpath={".status.phase"}) | ||
| if [[ "${phase}" != "Running" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
| if [[ "${phase}" != "Running" ]]; then | |
| if [[ ${phase} != "Running" ]]; then |
| return cluster | ||
| } | ||
|
|
||
| const LabelVersion = "pgv2.percona.com/version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reuse this:
| LabelVersion = perconaLabelPrefix + "version" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately, no. it causes cyclical import
commit: 522c655 |
* K8SPG-260: Fix restart after upgrade * fix envtest * Add cluster restart check to upgrade-minor tests * K8SPG-643: Always try stanza-upgrade after a failed stanza-create * fix upgrade-minor test * improve major-upgrade --------- Co-authored-by: Eleonora Zinchenko <eleonora.zinchenko@percona.com> Co-authored-by: Viacheslav Sarzhan <slava.sarzhan@percona.com>
CHANGE DESCRIPTION
Problem:
Pods get restarted after deploying 2.5.0 operator without changing
crVersion.Cause:
No version check in crunchy controllers.
Solution:
Add version checks.
CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
Config/Logging/Testability