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
pull/1105/head
Matt Butcher 9 years ago
parent 3265550a50
commit 5566e6baec

@ -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 {
} }
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
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"
Loading…
Cancel
Save