Merge pull request #3520 from lifeiguanchen/fix1

Fix DeepEqual in federated-resource-quota-status-controller;
This commit is contained in:
karmada-bot 2023-05-11 18:40:24 +08:00 committed by GitHub
commit 5f96d733ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ func (c *StatusController) collectQuotaStatus(quota *policyv1alpha1.FederatedRes
quotaStatus.AggregatedStatus = aggregatedStatuses
quotaStatus.OverallUsed = calculateUsed(aggregatedStatuses)
if reflect.DeepEqual(quota.Status, quotaStatus) {
if reflect.DeepEqual(quota.Status, *quotaStatus) {
klog.V(4).Infof("New quotaStatus are equal with old federatedResourceQuota(%s) status, no update required.", klog.KObj(quota).String())
return nil
}