Skip to content

Commit 36697c4

Browse files
committed
Changes due to merging of PodRemove into PodDelete
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent ba954de commit 36697c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/epp/controller/pod_reconciler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (c *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.R
5252
pod := &corev1.Pod{}
5353
if err := c.Get(ctx, req.NamespacedName, pod); err != nil {
5454
if apierrors.IsNotFound(err) {
55-
c.Datastore.PodRemove(req.Name)
55+
c.Datastore.PodDelete(req.Name)
5656
return ctrl.Result{}, nil
5757
}
5858
return ctrl.Result{}, fmt.Errorf("unable to get pod - %w", err)
@@ -91,7 +91,7 @@ func (c *PodReconciler) SetupWithManager(mgr ctrl.Manager) error {
9191
func (c *PodReconciler) updateDatastore(logger logr.Logger, pod *corev1.Pod) {
9292
if !podutil.IsPodReady(pod) || !c.Datastore.PoolLabelsMatch(pod.Labels) {
9393
logger.V(logutil.DEBUG).Info("Pod removed or not added")
94-
c.Datastore.PodRemove(pod.Name)
94+
c.Datastore.PodDelete(pod.Name)
9595
} else {
9696
if c.Datastore.PodUpdateOrAddIfNotExist(pod) {
9797
logger.V(logutil.DEFAULT).Info("Pod added")

0 commit comments

Comments
 (0)