-
Notifications
You must be signed in to change notification settings - Fork 125
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
Create container_quota_scopes table #111
Conversation
@zeari @gtanzillo @Fryguy please review, want to get at least schema before freeze. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This pull request is not mergeable. Please rebase and repush. |
https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-scopes We don't yet store them, but should. ContainerQuota has_many (0 or more) container_quota_scopes. Each scope is a string (currently enum with 4 possible values). https://bugzilla.redhat.com/show_bug.cgi?id=1504560
Checked commit cben@c8f0a5b with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
rebased, switched to standard |
Note to self: I forgot to index This could slow down refresh (and display) if there will be tons of archived rows. |
https://kubernetes.io/docs/concepts/policy/resource-quotas/#quota-scopes
We don't yet store them, but should.
ContainerQuota has_many scopes, each a string (currently enum with 4 possible values
Terminating
,NotTerminating
,BestEffort
,NotBestEffort
).Didn't see any reason to choose clever serialized/json representation so went with standard has_many to new table.
See #110 for motivation having created_at/deleted_on.
https://bugzilla.redhat.com/show_bug.cgi?id=1504560