@ -36,6 +36,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 = `
@ -315,6 +316,14 @@ 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" )
}
}
needsDefaultImage := ! i . clientOnly && ! i . opts . UseCanary && len ( i . opts . ImageSpec ) == 0 && version . BuildMetadata == "unreleased"
if needsDefaultImage {
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
}
}