backport of commit 7fe432042eaa0a97c0aaa40d302055eb18e8a9b0 (#18040)
This pull request was automerged via backport-assistant
This commit is contained in:
parent
02c2f1a50f
commit
4f087674f4
|
@ -35,7 +35,7 @@ var (
|
|||
validNodePoolName = regexp.MustCompile("^[a-zA-Z0-9-_]{1,128}$")
|
||||
)
|
||||
|
||||
// ValidadeNodePoolName returns an error if a node pool name is invalid.
|
||||
// ValidateNodePoolName returns an error if a node pool name is invalid.
|
||||
func ValidateNodePoolName(pool string) error {
|
||||
if !validNodePoolName.MatchString(pool) {
|
||||
return fmt.Errorf("invalid name %q, must match regex %s", pool, validNodePoolName)
|
||||
|
|
Loading…
Reference in New Issue