Summary
This feature aims to enhance the existing FederatedResourceQuota so it can impose namespaced resource limits directly on the Karmada control-plane level. This feature enhancement has several benefits, including:
- Track resource consumption and limits from a unified place
- Prevent users from over-consuming aggregate resources across clusters
- Easier for users of application and cluster failover to ensure that fallback clusters have enough resources to house all the user's workflows
Proposal:
Iteration Tasks -- Part-1: FederatedResourceQuota Enhancement MVP
Summary
This feature aims to enhance the existing FederatedResourceQuota so it can impose namespaced resource limits directly on the Karmada control-plane level. This feature enhancement has several benefits, including:
Proposal:
Iteration Tasks -- Part-1: FederatedResourceQuota Enhancement MVP
FederatedQuotaEnforcementaddFederatedQuotaEnforcementfeature flag #6366 (@liwang0513)- Watch create/update events for FRQ, and update federatedresourcequota.status.overall
- Watch deletion of RB -> find related FRQ -> recalculate quota usage
- Periodically recalculate FRQ status
- Check delta in quota usage and deny request if above limits
- Otherwise update federatedresourcequota.status.overallUsed and then approve update request