ensure the image version matches expected version
fix https://github.com/seaweedfs/seaweedfs-operator/issues/25
This commit is contained in:
parent
8342be9b1c
commit
cb86e4a770
|
@ -59,7 +59,12 @@ func (r *SeaweedReconciler) waitForMasterStatefulSet(seaweedCR *seaweedv1.Seawee
|
|||
runningCounter := 0
|
||||
for _, pod := range podList.Items {
|
||||
if pod.Status.Phase == corev1.PodRunning {
|
||||
for _, containerStatus := range pod.Status.ContainerStatuses {
|
||||
if containerStatus.Image == seaweedCR.Spec.Image {
|
||||
runningCounter++
|
||||
break
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.Info("pod", "name", pod.Name, "status", pod.Status)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue