Rise limit for smart update to 2h
@@ -84,13 +84,9 @@ func (r *ReconcilePerconaXtraDBCluster) updatePod(sfs api.StatefulApp, podSpec *
}
if isHAproxy(sfs) && cr.CompareVersionWith("1.6.0") >= 0 {
- if _, ok := currentSet.Spec.Template.Annotations["percona.com/ssl-internal-hash"]; ok {
delete(currentSet.Spec.Template.Annotations, "percona.com/ssl-internal-hash")
- }
- if _, ok := currentSet.Spec.Template.Annotations["percona.com/ssl-hash"]; ok {
delete(currentSet.Spec.Template.Annotations, "percona.com/ssl-hash")
}
- }
var newContainers []corev1.Container
var newInitContainers []corev1.Container
@@ -208,7 +204,7 @@ func (r *ReconcilePerconaXtraDBCluster) smartUpdate(sfs api.StatefulApp, cr *api
log.Info(fmt.Sprintf("primary pod is %s", primary))
- waitLimit := 120
+ waitLimit := 2 * 60 * 60 // 2 hours
if cr.Spec.PXC.LivenessInitialDelaySeconds != nil {
waitLimit = int(*cr.Spec.PXC.LivenessInitialDelaySeconds)
}
