WIP: refactor custom pod deployment controller