-
Notifications
You must be signed in to change notification settings - Fork 64
[quota management] Move AppWrapper quota request from label to element of AppWrapper object #377
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
Comments
Any reason why this should be the case? It's an interesting idea, and I don't know why it was designed this way, but I wanna understand why you think it is better in the |
My main issue with the labels as they are now is the fact that they are free-form with just ...
spec:
quotas:
- tree: foo
node: bar
... or ...
spec:
quotas:
foo: bar
... I think this could also be done through labels as well with something like: metadata:
labels:
quota.mcad.ibm.io/tree-name: "node" |
An edge case also just popped into my head that labels can't solve. If you want to specify multiple quotas within the same tree you wouldn't be able to with labels (it would require duplicate keys). I'm not sure how valid, or useful this case is though. My second example would also fail in this case. |
I think is @KPostOffice idea has a lot of merit, quota tree use should be an optional part of the app wrapper spec. Labels seem a little to loose. |
Currently AppWrappers must define quotas in their
metadata.labels
. We should think about moving these to be an element of the AppWrapperspec
instead.The text was updated successfully, but these errors were encountered: