diff --git a/pkg/webhook/elasticquota/quota_topology_check.go b/pkg/webhook/elasticquota/quota_topology_check.go index 0ba2ed955..689021eb3 100644 --- a/pkg/webhook/elasticquota/quota_topology_check.go +++ b/pkg/webhook/elasticquota/quota_topology_check.go @@ -69,6 +69,10 @@ func (qt *quotaTopology) validateQuotaSelfItem(quota *v1alpha1.ElasticQuota) err // validateQuotaTopology checks the quotaInfo's topology with its parent and its children. // oldQuotaInfo is null wben validate a new create request, and is the current quotaInfo when validate a update request. func (qt *quotaTopology) validateQuotaTopology(oldQuotaInfo, newQuotaInfo *QuotaInfo, oldNamespaces []string) error { + if newQuotaInfo.Name == extension.RootQuotaName { + return nil + } + if err := qt.checkIsParentChange(oldQuotaInfo, newQuotaInfo, oldNamespaces); err != nil { return err }