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]: Update cluster resource quota to support namespaces #20

Merged
merged 3 commits into from
Nov 10, 2023

Conversation

hoptical
Copy link
Collaborator

@hoptical hoptical commented Nov 9, 2023

Cluster resource quota status has two fields: total and namespaces. The namespaces field is a slice of the namespaces matching the cluster resource quota selector.
At the moment, the operator only updates the total field. Hence, the applied resource quota, which mirrors the cluster resource quota for the current namespace, doesn't have the namespace status and shows an error in the OKD console.

This PR adds the appropriate update, adding the namespace quota to the cluster resource quota status.
Additionally, I have put the code lines for assigning usedQuota needed for the total field in a separate function, assignUsedQuotaToResourceStatus.

@hoptical hoptical added the bug Something isn't working label Nov 9, 2023
@hoptical hoptical requested a review from therealak12 November 9, 2023 15:07
@hoptical hoptical self-assigned this Nov 9, 2023
@hoptical hoptical merged commit 161c945 into main Nov 10, 2023
3 checks passed
@hoptical hoptical deleted the fix/acrq-bug branch November 10, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants