adapted to kubernetes scheduling plugin api