|
|
@ -94,41 +94,39 @@ func newRootCmd(out io.Writer) *cobra.Command {
|
|
|
|
p.BoolVar(&flagDebug, "debug", false, "enable verbose output")
|
|
|
|
p.BoolVar(&flagDebug, "debug", false, "enable verbose output")
|
|
|
|
p.StringVar(&tillerNamespace, "tiller-namespace", defaultTillerNamespace(), "namespace of tiller")
|
|
|
|
p.StringVar(&tillerNamespace, "tiller-namespace", defaultTillerNamespace(), "namespace of tiller")
|
|
|
|
|
|
|
|
|
|
|
|
// Tell gRPC not to log to console.
|
|
|
|
|
|
|
|
grpclog.SetLogger(log.New(ioutil.Discard, "", log.LstdFlags))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rup := newRepoUpdateCmd(out)
|
|
|
|
|
|
|
|
rup.Deprecated = "use 'helm repo update'\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cmd.AddCommand(
|
|
|
|
cmd.AddCommand(
|
|
|
|
|
|
|
|
// chart commands
|
|
|
|
newCreateCmd(out),
|
|
|
|
newCreateCmd(out),
|
|
|
|
newDeleteCmd(nil, out),
|
|
|
|
|
|
|
|
newDependencyCmd(out),
|
|
|
|
newDependencyCmd(out),
|
|
|
|
newFetchCmd(out),
|
|
|
|
newFetchCmd(out),
|
|
|
|
|
|
|
|
newInspectCmd(out),
|
|
|
|
|
|
|
|
newLintCmd(out),
|
|
|
|
|
|
|
|
newPackageCmd(out),
|
|
|
|
|
|
|
|
newRepoCmd(out),
|
|
|
|
|
|
|
|
newSearchCmd(out),
|
|
|
|
|
|
|
|
newServeCmd(out),
|
|
|
|
|
|
|
|
newVerifyCmd(out),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// release commands
|
|
|
|
|
|
|
|
newDeleteCmd(nil, out),
|
|
|
|
newGetCmd(nil, out),
|
|
|
|
newGetCmd(nil, out),
|
|
|
|
newHomeCmd(out),
|
|
|
|
|
|
|
|
newHistoryCmd(nil, out),
|
|
|
|
newHistoryCmd(nil, out),
|
|
|
|
newInitCmd(out),
|
|
|
|
|
|
|
|
newInspectCmd(nil, out),
|
|
|
|
|
|
|
|
newInstallCmd(nil, out),
|
|
|
|
newInstallCmd(nil, out),
|
|
|
|
newLintCmd(out),
|
|
|
|
|
|
|
|
newListCmd(nil, out),
|
|
|
|
newListCmd(nil, out),
|
|
|
|
newPackageCmd(nil, out),
|
|
|
|
|
|
|
|
newRepoCmd(out),
|
|
|
|
|
|
|
|
newRollbackCmd(nil, out),
|
|
|
|
newRollbackCmd(nil, out),
|
|
|
|
newSearchCmd(out),
|
|
|
|
|
|
|
|
newServeCmd(out),
|
|
|
|
|
|
|
|
newStatusCmd(nil, out),
|
|
|
|
newStatusCmd(nil, out),
|
|
|
|
newUpgradeCmd(nil, out),
|
|
|
|
newUpgradeCmd(nil, out),
|
|
|
|
newVerifyCmd(out),
|
|
|
|
|
|
|
|
|
|
|
|
newCompletionCmd(out),
|
|
|
|
|
|
|
|
newHomeCmd(out),
|
|
|
|
|
|
|
|
newInitCmd(out),
|
|
|
|
newVersionCmd(nil, out),
|
|
|
|
newVersionCmd(nil, out),
|
|
|
|
newCompletionCmd(out, cmd),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Hidden documentation generator command: 'helm docs'
|
|
|
|
// Hidden documentation generator command: 'helm docs'
|
|
|
|
newDocsCmd(out, cmd),
|
|
|
|
newDocsCmd(out),
|
|
|
|
|
|
|
|
|
|
|
|
// Deprecated
|
|
|
|
// Deprecated
|
|
|
|
rup,
|
|
|
|
markDeprecated(newRepoUpdateCmd(out), "use 'helm repo update'\n"),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// Find and add plugins
|
|
|
|
// Find and add plugins
|
|
|
@ -137,6 +135,11 @@ func newRootCmd(out io.Writer) *cobra.Command {
|
|
|
|
return cmd
|
|
|
|
return cmd
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
|
|
|
// Tell gRPC not to log to console.
|
|
|
|
|
|
|
|
grpclog.SetLogger(log.New(ioutil.Discard, "", log.LstdFlags))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
func main() {
|
|
|
|
cmd := newRootCmd(os.Stdout)
|
|
|
|
cmd := newRootCmd(os.Stdout)
|
|
|
|
if err := cmd.Execute(); err != nil {
|
|
|
|
if err := cmd.Execute(); err != nil {
|
|
|
@ -144,6 +147,11 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func markDeprecated(cmd *cobra.Command, notice string) *cobra.Command {
|
|
|
|
|
|
|
|
cmd.Deprecated = notice
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func setupConnection(c *cobra.Command, args []string) error {
|
|
|
|
func setupConnection(c *cobra.Command, args []string) error {
|
|
|
|
if tillerHost == "" {
|
|
|
|
if tillerHost == "" {
|
|
|
|
tunnel, err := newTillerPortForwarder(tillerNamespace, kubeContext)
|
|
|
|
tunnel, err := newTillerPortForwarder(tillerNamespace, kubeContext)
|
|
|
|