node-pool: fix validate name function comment typo. (#17927)

This commit is contained in:
James Rasell
2023-07-24 08:28:05 +01:00
committed by GitHub
parent b9a388f5df
commit 2a91bf4469

View File

@@ -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)