|
|
|
@ -345,7 +345,7 @@ By default, the default directories depend on the Operating System. The defaults
|
|
|
|
|
+------------------+---------------------------+--------------------------------+-------------------------+
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string) *cobra.Command {
|
|
|
|
|
func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string) (*cobra.Command, error) {
|
|
|
|
|
cmd := &cobra.Command{
|
|
|
|
|
Use: "helm",
|
|
|
|
|
Short: "The Helm package manager for Kubernetes.",
|
|
|
|
@ -419,8 +419,7 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string
|
|
|
|
|
registry.ClientOptCredentialsFile(settings.RegistryConfig),
|
|
|
|
|
)
|
|
|
|
|
if err != nil {
|
|
|
|
|
// TODO: don't panic here, refactor newRootCmd to return error
|
|
|
|
|
panic(err)
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
actionConfig.RegistryClient = registryClient
|
|
|
|
|
cmd.AddCommand(
|
|
|
|
@ -431,5 +430,5 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string
|
|
|
|
|
// Find and add plugins
|
|
|
|
|
loadPlugins(cmd, out)
|
|
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
|
return cmd, nil
|
|
|
|
|
}
|
|
|
|
|