From 05952562814db45b5a136c7c6dab3db8e904f4be Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Thu, 16 Apr 2020 14:52:55 -0700 Subject: [PATCH] Revert "pass command line args (#63)" (#115) This reverts commit 0aab1bc32895eb544de79d78c4a7d17dc120b1f1. --- cmd/controller/cmd/root.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/controller/cmd/root.go b/cmd/controller/cmd/root.go index c5b7ca040c..315df65335 100644 --- a/cmd/controller/cmd/root.go +++ b/cmd/controller/cmd/root.go @@ -94,14 +94,12 @@ func init() { rootCmd.AddCommand(viper.GetConfigCommand()) } -func initConfig(cmd *cobra.Command, _ []string) error { +func initConfig(_ *cobra.Command, _ []string) error { configAccessor = viper.NewAccessor(config.Options{ StrictMode: true, SearchPaths: []string{cfgFile}, }) - configAccessor.InitializePflags(cmd.Flags()) - err := configAccessor.UpdateConfig(context.TODO()) if err != nil { return err