package commonazure

import "fmt"

// DedicatedNodePoolName returns the physical AKS NodePool name for a dedicated
// agent. AKS node pool names are capped at 12 characters, so the base name
// (with optional spec suffix) is FNV-1a hashed via sanitizeAKSNodePoolName into
// the form "ny<10-hex>".
func DedicatedNodePoolName(baseName, specName string) string {
	name := baseName
	if specName != "" && specName != defaultSpecName {
		name = fmt.Sprintf("%s-%s", baseName, specName)
	}
	return sanitizeAKSNodePoolName(name)
}
