Refactor kubectl create deploy: isolate obj construction logic
Refactor kubectl create deploy: isolate obj construction logic

Kubernetes-commit: c43f62c10b55a8722f1cd5c0547307da388d6b23

kubernetes/kubectl,kubernetes/kubectl