StatCan/aaw-kubeflow-profiles-controller

Resource Quota does not Reset to Default on Label Removal

Souheil-Yazji opened this issue · 1 comments

Resource Quotas can be overriden by applying labels to the appropriate profile.
Currently, when the quota override labels are removed, the default values are not restored.
The values should return to default after the labels are removed to revoke modified quota limits and allow/deny requests correctly.

func overrideResourceQuotas(profile *kubeflowv1.Profile) corev1.ResourceList {

Tested on profile sy-test by removing the existing labels. Resource quotas reset to these values:

Image