Commit 5566e6ba authored by Matt Butcher's avatar Matt Butcher

ref(pkg/client): move pkg/client to cmd/helm/installer

This is a minor refactor to move a leftover from Ancient Helm into the
current design. Specifically, the code to install Tiller from the Helm
client is now in `cmd/helm/installer`.

Closes #1033
parent 3265550a
...@@ -25,7 +25,7 @@ import ( ...@@ -25,7 +25,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"k8s.io/helm/pkg/client" "k8s.io/helm/cmd/helm/installer"
) )
const initDesc = ` const initDesc = `
...@@ -71,7 +71,7 @@ func (i *initCmd) run() error { ...@@ -71,7 +71,7 @@ func (i *initCmd) run() error {
} }
if !i.clientOnly { if !i.clientOnly {
if err := client.Install(tillerNamespace, i.image, flagDebug); err != nil { if err := installer.Install(tillerNamespace, i.image, flagDebug); err != nil {
if !strings.Contains(err.Error(), `"tiller-deploy" already exists`) { if !strings.Contains(err.Error(), `"tiller-deploy" already exists`) {
return fmt.Errorf("error installing: %s", err) return fmt.Errorf("error installing: %s", err)
} }
......
...@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and ...@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
package client // import "k8s.io/helm/pkg/client" package installer // import "k8s.io/helm/cmd/helm/installer"
import ( import (
"bytes" "bytes"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment