diff --git a/src/operator/controllers/poduserpassword/db_credentials_pod_reconciler.go b/src/operator/controllers/poduserpassword/db_credentials_pod_reconciler.go index f663f7d..b45c404 100644 --- a/src/operator/controllers/poduserpassword/db_credentials_pod_reconciler.go +++ b/src/operator/controllers/poduserpassword/db_credentials_pod_reconciler.go @@ -91,6 +91,9 @@ func (e *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Resu // Fix for when the namespace is terminating but pods aren't getting the delete trigger just yet namespace := v1.Namespace{} if err := e.client.Get(ctx, types.NamespacedName{Name: req.Namespace}, &namespace); err != nil { + if apierrors.IsNotFound(err) { + return ctrl.Result{}, nil + } return ctrl.Result{}, errors.Wrap(err) }