Support resource-lock type configmap for leader election
Support resource-lock type configmap for leader election

The lock type parameter was being ignored. Use the new factory method to
instantiate the lock type.

mmerrill3/autoscaler,bskiba/autoscaler,mtcode/autoscaler,bskiba/autoscaler,kubernetes/autoscaler,aleksandra-malinowska/autoscaler,kubernetes/autoscaler,kgrygiel/autoscaler,kubernetes/autoscaler,kgrygiel/autoscaler,KarolKraskiewicz/autoscaler,aleksandra-malinowska/autoscaler,mmerrill3/autoscaler,KarolKraskiewicz/autoscaler,kubernetes/autoscaler,bskiba/autoscaler,aleksandra-malinowska/autoscaler,mmerrill3/autoscaler,mtcode/autoscaler,kgrygiel/autoscaler,mtcode/autoscaler,KarolKraskiewicz/autoscaler,mmerrill3/autoscaler