Bladeren bron

add logging to deletion pdb

tags/0.0.3
Vladimir Smagin 8 maanden geleden
bovenliggende
commit
5e8130bc98
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. +3
    -0
      pkg/controller/redis/redis_controller.go

+ 3
- 0
pkg/controller/redis/redis_controller.go Bestand weergeven

@@ -208,6 +208,7 @@ fi
err := r.client.Delete(context.TODO(), &pdb)
if err != nil && !errors.IsNotFound(err) {
raven.CaptureErrorAndWait(err, nil)
reqLogger.Info("PodDisruptionBudget deletion error", "Namespace", pdb.Namespace, "Name", pdb.Name, "Error", err)
return reconcile.Result{}, err
}
}
@@ -251,6 +252,7 @@ fi
err := r.client.Delete(context.TODO(), &pdb)
if err != nil && !errors.IsNotFound(err) {
raven.CaptureErrorAndWait(err, nil)
reqLogger.Info("PodDisruptionBudget deletion error", "Namespace", pdb.Namespace, "Name", pdb.Name, "Error", err)
return reconcile.Result{}, err
}

@@ -285,6 +287,7 @@ fi
err := r.client.Delete(context.TODO(), &pdb)
if err != nil && !errors.IsNotFound(err) {
raven.CaptureErrorAndWait(err, nil)
reqLogger.Info("PodDisruptionBudget deletion error", "Namespace", pdb.Namespace, "Name", pdb.Name, "Error", err)
return reconcile.Result{}, err
}



Laden…
Annuleren
Opslaan