brandboat commented on code in PR #763:
URL: https://github.com/apache/yunikorn-core/pull/763#discussion_r1439046193
##########
pkg/common/configs/configvalidator.go:
##########
@@ -573,6 +573,19 @@ func checkLimit(limit Limit, existedUserName
map[string]bool, existedGroupName m
return nil
}
+func checkLimitsStructure(rootQueue *QueueConfig, partitionLimits []Limit)
error {
+ if len(partitionLimits) > 0 && len(rootQueue.Limits) > 0 {
+ return fmt.Errorf("partition limits and root queue limits both
exist")
+ }
+
+ // if root queue limits not defined, apply partition limits
+ if len(partitionLimits) > 0 && len(rootQueue.Limits) == 0 {
+ rootQueue.Limits = partitionLimits
Review Comment:
Thanks for the detailed review, indeed we should wipe out partition limits
after applied them to root queue, already addressed that in the latest commit.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]