|
|
@ -66,17 +66,18 @@ var (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type initCmd struct {
|
|
|
|
type initCmd struct {
|
|
|
|
image string
|
|
|
|
image string
|
|
|
|
clientOnly bool
|
|
|
|
clientOnly bool
|
|
|
|
canary bool
|
|
|
|
canary bool
|
|
|
|
upgrade bool
|
|
|
|
upgrade bool
|
|
|
|
namespace string
|
|
|
|
namespace string
|
|
|
|
dryRun bool
|
|
|
|
dryRun bool
|
|
|
|
skipRefresh bool
|
|
|
|
skipRefresh bool
|
|
|
|
out io.Writer
|
|
|
|
out io.Writer
|
|
|
|
home helmpath.Home
|
|
|
|
home helmpath.Home
|
|
|
|
opts installer.Options
|
|
|
|
opts installer.Options
|
|
|
|
kubeClient internalclientset.Interface
|
|
|
|
kubeClient internalclientset.Interface
|
|
|
|
|
|
|
|
serviceAccount string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func newInitCmd(out io.Writer) *cobra.Command {
|
|
|
|
func newInitCmd(out io.Writer) *cobra.Command {
|
|
|
@ -116,6 +117,7 @@ func newInitCmd(out io.Writer) *cobra.Command {
|
|
|
|
f.StringVar(&localRepositoryURL, "local-repo-url", localRepositoryURL, "URL for local repository")
|
|
|
|
f.StringVar(&localRepositoryURL, "local-repo-url", localRepositoryURL, "URL for local repository")
|
|
|
|
|
|
|
|
|
|
|
|
f.BoolVar(&i.opts.EnableHostNetwork, "net-host", false, "install tiller with net=host")
|
|
|
|
f.BoolVar(&i.opts.EnableHostNetwork, "net-host", false, "install tiller with net=host")
|
|
|
|
|
|
|
|
f.StringVar(&i.serviceAccount, "service-account", "", "name of service account")
|
|
|
|
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
return cmd
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -154,6 +156,7 @@ func (i *initCmd) run() error {
|
|
|
|
i.opts.Namespace = i.namespace
|
|
|
|
i.opts.Namespace = i.namespace
|
|
|
|
i.opts.UseCanary = i.canary
|
|
|
|
i.opts.UseCanary = i.canary
|
|
|
|
i.opts.ImageSpec = i.image
|
|
|
|
i.opts.ImageSpec = i.image
|
|
|
|
|
|
|
|
i.opts.ServiceAccount = i.serviceAccount
|
|
|
|
|
|
|
|
|
|
|
|
if settings.Debug {
|
|
|
|
if settings.Debug {
|
|
|
|
writeYAMLManifest := func(apiVersion, kind, body string, first, last bool) error {
|
|
|
|
writeYAMLManifest := func(apiVersion, kind, body string, first, last bool) error {
|
|
|
|