Skip to content

Bug in InferencePool Reconciler's short-circuit logic #146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MaYuan-02 opened this issue Jan 3, 2025 · 3 comments
Closed

Bug in InferencePool Reconciler's short-circuit logic #146

MaYuan-02 opened this issue Jan 3, 2025 · 3 comments

Comments

@MaYuan-02
Copy link
Contributor

Hi everyone,

I'm interested in this project and am currently exploring the existing implementation. I've identified an error in the InferencePool Reconciler and would be happy to work on a fix.

func (c *InferencePoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
	if req.NamespacedName.Name != c.ServerPoolName && req.NamespacedName.Namespace != c.Namespace {
		return ctrl.Result{}, nil
	}
...
}

The OR operator should be used here, right?

@MaYuan-02 MaYuan-02 changed the title Bug Fix: InferencePool Reconciler Bug in InferencePool Reconciler's short-circuit logic Jan 3, 2025
@ahg-g
Copy link
Contributor

ahg-g commented Jan 4, 2025

good catch, thanks for the fix!

@ahg-g
Copy link
Contributor

ahg-g commented Jan 4, 2025

/close

@k8s-ci-robot
Copy link
Contributor

@ahg-g: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants