wilfred-s commented on code in PR #891:
URL: https://github.com/apache/yunikorn-core/pull/891#discussion_r1650526130
##########
pkg/common/configs/configvalidator.go:
##########
@@ -673,6 +673,13 @@ func checkQueues(queue *QueueConfig, level int) error {
return nil
}
+func IsQueueNameValid(queueName string) error {
+ if !QueueNameRegExp.MatchString(queueName) {
+ return fmt.Errorf("invalid queue name '%s', max 64 characters
consisting of alphanumeric characters and '-', '_', '#', '@', '/', ':'
allowed", queueName)
Review Comment:
NIT: this could be a fixed error that we define and could use in testing
with `isError()` etc.
--
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]