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

Fix: Downscale claim staying in pending #8

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

leoarpin
Copy link
Contributor

@leoarpin leoarpin commented Nov 3, 2023

Fix bug concerning Downscale Quotaclaim that were staying infinitly in PENDING status.

The bug was that nothing was re running the claims that had been set to pending. PENDING claims were staying in pending even after someone deleted a pod. The claims were just never re evaluated.

Fixed it by adding an Informer that looks at pods in namespace. Requeue all claims that are pending to be re-evaluated on every pod update inside the namespace.

@leoarpin leoarpin mentioned this pull request Nov 3, 2023
Copy link
Contributor

@Whisper40 Whisper40 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple erreur de nommage de variable (bash :))

internal/controller/controller.go Outdated Show resolved Hide resolved
internal/controller/controller.go Outdated Show resolved Hide resolved
changed some variables name to fit coding style

Co-authored-by: Kévin PEREZ <30440458+Whisper40@users.noreply.github.com>
@Whisper40 Whisper40 merged commit 63e391e into ca-gip:master Nov 20, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants