fix: handling multiple resources for hard ResourceQuota resources

This commit is contained in:
Dario Tranchitella
2021-07-23 23:45:38 +02:00
parent 4604e44c37
commit bd12068397

View File

@@ -405,7 +405,6 @@ func (r *TenantReconciler) syncResourceQuotas(tenant *capsulev1beta1.Tenant) err
}
rql.Items[i].Spec.Hard[rn] = q.Hard[rn]
}
target.Spec = q
}
if err := r.resourceQuotasUpdate(rn, qt, q.Hard[rn], rql.Items...); err != nil {
r.Log.Error(err, "cannot proceed with outer ResourceQuota")