appuio / component-appuio-cloud

APPUiO Cloud
https://hub.syn.tools/appuio-cloud/index.html
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Add support for overriding storageclass-specific quotas #107

Closed simu closed 2 years ago

simu commented 2 years ago

The storageclass-specific quotas use keys which are too long to work with the generic annotation-based system for customizing the quotas in single namespaces.

This PR introduces a special annotation resourcequota.appuio.io/<quota-name>.storageclasses whose value is parsed as a JSON object. If there's a key which matches an existing <storageclass>.storageclass.k8s.io quota, the policy will use the value of that key as the final value for that quota instead of the default defined in the component defaults.

Checklist