mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-17 13:25:31 +02:00
#252 Handle Jenkins CR replace gracefully
This commit is contained in:
@@ -839,6 +839,10 @@ func (r *ReconcileJenkinsBaseConfiguration) detectJenkinsMasterPodStartingIssues
|
||||
return false, err
|
||||
}
|
||||
|
||||
if r.Configuration.Jenkins.Status.ProvisionStartTime == nil {
|
||||
return true, nil
|
||||
}
|
||||
|
||||
if jenkinsMasterPod.Status.Phase == corev1.PodPending {
|
||||
timeout := r.Configuration.Jenkins.Status.ProvisionStartTime.Add(time.Minute * 2).UTC()
|
||||
now := time.Now().UTC()
|
||||
|
||||
Reference in New Issue
Block a user