func (i *initCmd) run() error {
	if err := ensureHome(); err != nil {
		return err
	}

	if !i.clientOnly {
		if err := installer.Install(tillerNamespace, i.image, flagDebug); err != nil {
			if !strings.Contains(err.Error(), `"tiller-deploy" already exists`) {
				return fmt.Errorf("error installing: %s", err)
			}
			fmt.Fprintln(i.out, "Warning: Tiller is already installed in the cluster. (Use --client-only to suppress this message.)")
		} else {
			fmt.Fprintln(i.out, "\nTiller (the helm server side component) has been installed into your Kubernetes Cluster.")
		}
	} else {
		fmt.Fprintln(i.out, "Not installing tiller due to 'client-only' flag having been set")
	}
	fmt.Fprintln(i.out, "Happy Helming!")
	return nil
}
// runInit initializes local config and installs tiller to Kubernetes Cluster
runInit initializes local config and installs tiller to Kubernetes Cluster
// runInit initializes local config and installs tiller to Kubernetes Cluster
func (i *initCmd) run() error {
	if err := ensureHome(); err != nil {
		return err
	}
	if !i.clientOnly {
		if err := installer.Install(tillerNamespace, i.image, flagDebug); err != nil {
			if !strings.Contains(err.Error(), `"tiller-deploy" already exists`) {
				return fmt.Errorf("error installing: %s", err)
			}
			fmt.Fprintln(i.out, "Warning: Tiller is already installed in the cluster. (Use --client-only to suppress this message.)")
		} else {
			fmt.Fprintln(i.out, "\nTiller (the helm server side component) has been installed into your Kubernetes Cluster.")
		}
	} else {
		fmt.Fprintln(i.out, "Not installing tiller due to 'client-only' flag having been set")
	}
	fmt.Fprintln(i.out, "Happy Helming!")
	return nil
}
func ( i * initCmd ) run ( ) error { if err := ensureHome ( ) ; err != nil { return err } if ! i . clientOnly { if err := installer . Install ( tillerNamespace , i . image , flagDebug ) ; err != nil { if ! strings . Contains ( err . Error ( ) , `"tiller-deploy" already exists` ) { return fmt . Errorf ( " " , err ) } fmt . Fprintln ( i . out , " " ) } else { fmt . Fprintln ( i . out , " \n " ) } } else { fmt . Fprintln ( i . out , " " ) } fmt . Fprintln ( i . out , " " ) return nil }
runInit initializes local config and installs tiller to Kubernetes Cluster
runInit initializes local config and installs tiller to Kubernetes Cluster