|
|
@ -73,16 +73,14 @@ func printRelease(rel *release.Release) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func setupInstallEnv() {
|
|
|
|
func setupInstallEnv() {
|
|
|
|
// note: TILLER_HOST envvar is
|
|
|
|
// The 'host' flag takes precendence uber alles.
|
|
|
|
// acknowledged iff the host flag
|
|
|
|
// If set, proceed with install using provided host
|
|
|
|
// does not override the default.
|
|
|
|
// address. If unset, the 'TILLER_HOST' environment
|
|
|
|
//
|
|
|
|
// variable (if set) is used, otherwise defaults to ":44134".
|
|
|
|
// bug: except that if the host flag happens to set the host to the same
|
|
|
|
if tillerHost == "" {
|
|
|
|
// value as the defaultHost, the env var will be used instead.
|
|
|
|
tillerHost = os.Getenv(hostEnvVar)
|
|
|
|
if tillerHost == defaultHost {
|
|
|
|
if tillerHost == "" {
|
|
|
|
host := os.Getenv(hostEnvVar)
|
|
|
|
tillerHost = defaultHost
|
|
|
|
if host != "" {
|
|
|
|
|
|
|
|
tillerHost = host
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -90,7 +88,7 @@ func setupInstallEnv() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
func init() {
|
|
|
|
installCmd.Flags().StringVar(&tillerHost, "host", defaultHost, "address of tiller server")
|
|
|
|
installCmd.Flags().StringVar(&tillerHost, "host", "", "address of tiller server (default \":44134\")")
|
|
|
|
installCmd.Flags().BoolVar(&installDryRun, "dry-run", false, "simulate an install")
|
|
|
|
installCmd.Flags().BoolVar(&installDryRun, "dry-run", false, "simulate an install")
|
|
|
|
|
|
|
|
|
|
|
|
RootCommand.AddCommand(installCmd)
|
|
|
|
RootCommand.AddCommand(installCmd)
|
|
|
|