Don't skip pods status update if podStatusReasonProviderFailed
Closes #399 Signed-off-by: Hasan Turken <turkenh@gmail.com>
This commit is contained in:
committed by
Sargun Dhillon
parent
7af4ea5b0a
commit
42f7c56d32
@@ -195,8 +195,7 @@ func (pc *PodController) deletePod(ctx context.Context, pod *corev1.Pod) error {
|
|||||||
|
|
||||||
func shouldSkipPodStatusUpdate(pod *corev1.Pod) bool {
|
func shouldSkipPodStatusUpdate(pod *corev1.Pod) bool {
|
||||||
return pod.Status.Phase == corev1.PodSucceeded ||
|
return pod.Status.Phase == corev1.PodSucceeded ||
|
||||||
pod.Status.Phase == corev1.PodFailed ||
|
pod.Status.Phase == corev1.PodFailed
|
||||||
pod.Status.Reason == podStatusReasonProviderFailed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pc *PodController) updatePodStatus(ctx context.Context, podFromKubernetes *corev1.Pod, key string) error {
|
func (pc *PodController) updatePodStatus(ctx context.Context, podFromKubernetes *corev1.Pod, key string) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user