weaveworks / launcher

Weave Cloud Launcher
Apache License 2.0
10 stars 13 forks source link

Replace all kubectl.ExecuteCommand by higher level helpers #36

Closed dlespiau closed 6 years ago

dlespiau commented 6 years ago

At the moment we have code like:

    _, err = kubectl.ExecuteCommand(
        append([]string{
            "create",
            "secret",
            "generic",
            "weave-cloud",
            fmt.Sprintf("--from-literal=token=%s", token),
            "--namespace=weave",
        }, otherArgs...),
    )

It'd be more readable as CreateSecret(...) or Create("secret" , "generic", "weave-cloud", ...)