Don't skip pods status update if podStatusReasonProviderFailed

Closes #399

Signed-off-by: Hasan Turken <turkenh@gmail.com>
This commit is contained in:
Hasan Turken
2020-11-04 14:00:05 +03:00
committed by Sargun Dhillon
parent 7af4ea5b0a
commit 42f7c56d32

View File

@@ -195,8 +195,7 @@ func (pc *PodController) deletePod(ctx context.Context, pod *corev1.Pod) error {
func shouldSkipPodStatusUpdate(pod *corev1.Pod) bool {
return pod.Status.Phase == corev1.PodSucceeded ||
pod.Status.Phase == corev1.PodFailed ||
pod.Status.Reason == podStatusReasonProviderFailed
pod.Status.Phase == corev1.PodFailed
}
func (pc *PodController) updatePodStatus(ctx context.Context, podFromKubernetes *corev1.Pod, key string) error {