in pkg/providers/instance/instance.go [402:413]
func agentPoolIsCreatedFromNodeClaim(ap *armcontainerservice.AgentPool) bool {
if ap == nil || ap.Properties == nil {
return false
}
// when agentpool.NodeLabels includes nodepool label, return true, if not, return false
if _, ok := ap.Properties.NodeLabels[karpenterv1.NodePoolLabelKey]; ok {
return true
}
return false
}