|
|
@ -23,6 +23,7 @@ import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"strings"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
@ -36,6 +37,7 @@ import (
|
|
|
|
"k8s.io/helm/pkg/helm/helmpath"
|
|
|
|
"k8s.io/helm/pkg/helm/helmpath"
|
|
|
|
"k8s.io/helm/pkg/helm/portforwarder"
|
|
|
|
"k8s.io/helm/pkg/helm/portforwarder"
|
|
|
|
"k8s.io/helm/pkg/repo"
|
|
|
|
"k8s.io/helm/pkg/repo"
|
|
|
|
|
|
|
|
"k8s.io/helm/pkg/version"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const initDesc = `
|
|
|
|
const initDesc = `
|
|
|
@ -323,6 +325,13 @@ func (i *initCmd) run() error {
|
|
|
|
fmt.Fprintln(i.out, "Not installing Tiller due to 'client-only' flag having been set")
|
|
|
|
fmt.Fprintln(i.out, "Not installing Tiller due to 'client-only' flag having been set")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if !(len(strings.Split(version.Version, ".")) > 2) && !i.opts.UseCanary && len(i.opts.ImageSpec) == 0 {
|
|
|
|
|
|
|
|
fmt.Fprintf(i.out, "\nWarning: You appear to be using an unreleased version of Helm. Please either use the\n"+
|
|
|
|
|
|
|
|
"--canary-image flag, or specify your desired tiller version with --tiller-image.\n\n"+
|
|
|
|
|
|
|
|
"Ex:\n"+
|
|
|
|
|
|
|
|
"$ helm init --tiller-image gcr.io/kubernetes-helm/tiller:v2.8.2\n\n")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fmt.Fprintln(i.out, "Happy Helming!")
|
|
|
|
fmt.Fprintln(i.out, "Happy Helming!")
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|