-
Notifications
You must be signed in to change notification settings - Fork 162
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
Default Value PriorityClass/storageClasses/allowedClasses #610
Comments
Maybe it would even make sense adding a namespace selector.
|
This feature would require a mutating webhook in order to patch pods with the default value. Along with that, I would start using a bare value to keep the homogeneity of the other keys such as Regarding the selector, it's something we are already evaluating in #436, and that would be absolutely breaking since it means dropping the exact match and the regex one. |
We can work on this, once #644 is merged. |
@prometherion you can assign it to me, i have already some code for this feature but will wait for the new apiv |
Hey Oliver, is the code still valid? v1beta2 has been released upstream, wondering if we can reuse your logic here, otherwise, I'll build from scratch. |
Here some Notes/Discoveries (Important regarding the Review, updated over time) ## Persistence Multiple Defaults are not allowed by default by the API Multiple StorageClasses may be marked as default:
When trying to allocate a PV/PVC you will get the following reject:
Therefor we always expect the default StorageClass to be exactly one element at most. Skip Update Handling Field
Therefor no Handling on UPDATE |
Describe the feature
Generally it's a default value for
priorityClasses
,storageClasses
andallowedClasses
(Ingress). Adding a default value would simplify working in the tenant for the customer, since they wouldn't have to worry to much about these values, since a default value is applied. But then con overwrite it, by setting their value.Would you be happy to accept this feature(s)? I will do the contribution.
What would the new user story look like?
Story for PriorityClasses.
Add the feature to define a default PriorityClass for all pods within the tenant. The given default PriorityClass would be assigned to all pods, which don't have a priorityClass set. If a PriorityClass is set on a pad, the default is ignored. The default value is also verified against the allowed/regex.
A new tenant is created. The customer can assign two tiers
tier-gold
andtier-silver
. To make it more convenient to user only has to tag pods with higher priority withtier-gold
. While all the other pods are assigned thetier-silver
. Manifest could look like this:The text was updated successfully, but these errors were encountered: