Fix PendingRestart
PendingRestart
sgcluster condition seems broken ATM since it is just checking for the existence of the field and not that his value is also true
and the update of the status is performed only right after any cluster generated resources has been updated not giving Patroni enough time to update the pod annotations.
Also the condition does not include the pod requiring a restart due to pod template changed in the statefulset (when a pod .metadata.labels.controller-revision-hash
is different from statefulset .status.updateRevsion
)
Edited by Matteo Melli