Skip to content
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

[BUG] PodUnavailableBudget will not reconcile if not match pods when it is first starting. #1857

Open
PlasmolysisMango opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@PlasmolysisMango
Copy link

What happened:
PodUnavailableBudget will not reconcile if not match pods when it is first starting.
Firstly, I create a Pub with a label selector like this:

spec:
  minAvailable: 1
  selector:
    matchLabels:
      key: value

Then, I create some Pods with this matchLabels.
And the Pub will not match these Pods even if they are already created.

What you expected to happen:
If the Pub not match the Pods related by the matchLabels, it should retry after some time.

How to reproduce it (as minimally and precisely as possible):
Just like the steps I mentioned above.

Anything else we need to know?:
I read the code in Kruise( pkg/controller/podunavailablebudget/podunavailablebudget_controller.go:251 ), the controller will not reconcile if not match any Pod.

Environment:

  • Kruise version:
  • Kubernetes version (use kubectl version):
  • Install details (e.g. helm install args):
  • Others:
@PlasmolysisMango PlasmolysisMango added the kind/bug Something isn't working label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants