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

Don't get reservation status for terminating namespaces #323

Merged
merged 7 commits into from
Sep 1, 2023

Conversation

adamrdrew
Copy link
Collaborator

This patch addresses #316 / RHCLOUD-27918

I looked at this for way too long thinking about all kinds of complex fixes (pass the logger in as a depdency so we can control its log level out at the click commands, split the list namespaces method up into mine and not mine methods to better control what we're doing at run time so we don't need to check reservation status on any !mine namespaces) but in the end I realized we should just do this, always have the log level in Namespace.reservation be debug. This information isn't useful to a normal bonfire user; devs or cluster admins can up the log level.

@adamrdrew adamrdrew requested a review from bsquizz August 28, 2023 19:27
@adamrdrew
Copy link
Collaborator Author

Instead we should look if the phase is terminating for the namespace and then just omit it from the list. This will require we add a new is_terminating property to Namespace. Gonna do this that way instead.

@adamrdrew adamrdrew changed the title Change log level for Namespace.reservation to always be debug Don't get reservation status for terminating namespaces Aug 29, 2023
Copy link
Collaborator

@bsquizz bsquizz left a comment

Choose a reason for hiding this comment

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

Looks good!

@bsquizz bsquizz merged commit aa83089 into master Sep 1, 2023
7 checks 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