Add a rollingupdate lib and command to kubectl

Also decouple conditions from client for testability.
This commit is contained in:
Jeff Lowdermlk
2014-12-10 13:48:48 -08:00
parent ded3ef2827
commit 0ab39df66b
8 changed files with 576 additions and 5 deletions

View File

@@ -34,6 +34,8 @@ import (
var apiVersionToUse = "v1beta1"
const kubectlAnnotationPrefix = "kubectl.kubernetes.io/"
func GetKubeClient(config *client.Config, matchVersion bool) (*client.Client, error) {
// TODO: get the namespace context when kubectl ns is completed
c, err := client.New(config)