Kubernetes Prow Robot 
							
						 
					 
					
						
						
							
						
						dd8a000a77 
					 
					
						
						
							
							Merge pull request  #79493  from odinuge/kube-cmd-double-print  
						
						... 
						
						
						
						Remove duplicate error messages from cli commands 
						
						
					 
					
						2019-06-28 13:57:41 -07:00 
						 
				 
			
				
					
						
							
							
								Odin Ugedal 
							
						 
					 
					
						
						
							
						
						7caf51daa4 
					 
					
						
						
							
							Remove duplicate error messages from cli commands  
						
						... 
						
						
						
						Since we never use the cobras "SilenceErrors" or "SilenceUsage",
a command executed with "cmd.Execute()" will never return an error
without printing it.
The current behavior results in all error messages being printed twice:
Example:
$ kubectl abc
Error: unknown command "abc" for "kubectl"
Run 'kubectl --help' for usage.
unknown command "abc" for "kubectl"
This applies to all cli commands using Cobra. To verify, follow the code
path of the Execute function:
https://github.com/spf13/cobra/blob/c439c4fa0937/command.go#L793 
Signed-off-by: Odin Ugedal <odin@ugedal.com > 
						
						
					 
					
						2019-06-27 21:55:14 +02:00 
						 
				 
			
				
					
						
							
							
								Mike Dame 
							
						 
					 
					
						
						
							
						
						a710a83aa9 
					 
					
						
						
							
							Move pkg/util/logs to staging and update ref  
						
						
						
						
					 
					
						2019-06-27 15:15:55 -04:00 
						 
				 
			
				
					
						
							
							
								Marek Counts 
							
						 
					 
					
						
						
							
						
						7744f90830 
					 
					
						
						
							
							Moved flag and globalflag  
						
						... 
						
						
						
						Moved all flag code from `staging/src/k8s.io/apiserver/pkg/util/[flag|globalflag]` to `component-base/cli/[flag|globalflag]` except for the term function because of unwanted dependencies. 
						
						
					 
					
						2019-02-15 10:28:13 -05:00 
						 
				 
			
				
					
						
							
							
								Mikhail Mazurskiy 
							
						 
					 
					
						
						
							
						
						3a243090a5 
					 
					
						
						
							
							Simplify random seed initialization  
						
						... 
						
						
						
						There is no need to set the time zone as the result does not
depend on it 
						
						
					 
					
						2018-10-11 21:01:15 +11:00 
						 
				 
			
				
					
						
							
							
								xuzhonghu 
							
						 
					 
					
						
						
							
						
						46d8cf23ef 
					 
					
						
						
							
							kubectl use its own logs  
						
						
						
						
					 
					
						2018-05-22 11:35:38 +08:00 
						 
				 
			
				
					
						
							
							
								Mike Danese 
							
						 
					 
					
						
						
							
						
						e8d405a0ed 
					 
					
						
						
							
							auth: reregister auth providers  
						
						... 
						
						
						
						Fixes: 5d721bff81 
						
						
					 
					
						2018-02-26 09:08:41 -08:00 
						 
				 
			
				
					
						
							
							
								David Eads 
							
						 
					 
					
						
						
							
						
						e48847e6ce 
					 
					
						
						
							
							switch hyper to cobra  
						
						
						
						
					 
					
						2018-01-24 11:02:19 -05:00 
						 
				 
			
				
					
						
							
							
								David Eads 
							
						 
					 
					
						
						
							
						
						d7ddcca231 
					 
					
						
						
							
							low hanging fruit for using cobra commands  
						
						
						
						
					 
					
						2018-01-17 13:43:43 -05:00 
						 
				 
			
				
					
						
							
							
								huzhifeng 
							
						 
					 
					
						
						
							
						
						2b3a871df5 
					 
					
						
						
							
							Add fmt.printf for other need  
						
						... 
						
						
						
						Signed-off-by: huzhifeng <huzhifeng@douyu.tv > 
						
						
					 
					
						2017-08-18 16:07:56 +08:00 
						 
				 
			
				
					
						
							
							
								Lucas Käldström 
							
						 
					 
					
						
						
							
						
						88ea80b572 
					 
					
						
						
							
							Remove GOMAXPROCS() calls because they are unnecessary  
						
						
						
						
					 
					
						2016-07-19 11:08:21 +03:00 
						 
				 
			
				
					
						
							
							
								David McMahon 
							
						 
					 
					
						
						
							
						
						ef0c9f0c5b 
					 
					
						
						
							
							Remove "All rights reserved" from all the headers.  
						
						
						
						
					 
					
						2016-06-29 17:47:36 -07:00 
						 
				 
			
				
					
						
							
							
								Brendan Burns 
							
						 
					 
					
						
						
							
						
						19c582c2b1 
					 
					
						
						
							
							Add kubectl to the hyperkube binary  
						
						
						
						
					 
					
						2015-11-12 22:18:16 -08:00 
						 
				 
			
				
					
						
							
							
								Mike Danese 
							
						 
					 
					
						
						
							
						
						8e33cbfa28 
					 
					
						
						
							
							rewrite go imports  
						
						
						
						
					 
					
						2015-08-05 17:30:03 -07:00 
						 
				 
			
				
					
						
							
							
								Eric Paris 
							
						 
					 
					
						
						
							
						
						6b3a6e6b98 
					 
					
						
						
							
							Make copyright ownership statement generic  
						
						... 
						
						
						
						Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic. 
						
						
					 
					
						2015-05-01 17:49:56 -04:00 
						 
				 
			
				
					
						
							
							
								deads2k 
							
						 
					 
					
						
						
							
						
						6344cf3c3a 
					 
					
						
						
							
							refactor to move kubectl.cmd.Factory to kubect/cmd/util  
						
						
						
						
					 
					
						2015-04-07 14:43:50 -04:00 
						 
				 
			
				
					
						
							
							
								Andy Goldstein 
							
						 
					 
					
						
						
							
						
						5bd0e9ab05 
					 
					
						
						
							
							Add streaming command execution & port forwarding  
						
						... 
						
						
						
						Add streaming command execution & port forwarding via HTTP connection
upgrades (currently using SPDY). 
						
						
					 
					
						2015-02-20 09:57:02 -05:00 
						 
				 
			
				
					
						
							
							
								Daniel Smith 
							
						 
					 
					
						
						
							
						
						fcddefa184 
					 
					
						
						
							
							Set GOMAXPROCS. Print errors on stderr.  
						
						
						
						
					 
					
						2015-02-19 10:30:31 -08:00 
						 
				 
			
				
					
						
							
							
								deads2k 
							
						 
					 
					
						
						
							
						
						500bb3a7fa 
					 
					
						
						
							
							make kubectl factory flag binding optional  
						
						
						
						
					 
					
						2015-01-20 18:12:24 -05:00 
						 
				 
			
				
					
						
							
							
								Clayton Coleman 
							
						 
					 
					
						
						
							
						
						831557408b 
					 
					
						
						
							
							kubectl is double printing errors  
						
						... 
						
						
						
						cobra/command prints errs that are returned by cmd.Execute(), so
printing it twice does not accomplish anything. 
						
						
					 
					
						2015-01-14 20:11:51 -05:00 
						 
				 
			
				
					
						
							
							
								Clayton Coleman 
							
						 
					 
					
						
						
							
						
						8a4f225941 
					 
					
						
						
							
							Make expandResourceShortcuts part of RESTMapper on client  
						
						
						
						
					 
					
						2015-01-09 11:59:11 -05:00 
						 
				 
			
				
					
						
							
							
								deads2k 
							
						 
					 
					
						
						
							
						
						480635bb72 
					 
					
						
						
							
							Revert "Revert "add kubeconfig types""  
						
						... 
						
						
						
						This reverts commit 02dbad7094 
						
						
					 
					
						2015-01-08 09:42:30 -05:00 
						 
				 
			
				
					
						
							
							
								Brendan Burns 
							
						 
					 
					
						
						
							
						
						02dbad7094 
					 
					
						
						
							
							Revert "add kubeconfig types"  
						
						
						
						
					 
					
						2015-01-07 12:39:37 -08:00 
						 
				 
			
				
					
						
							
							
								deads2k 
							
						 
					 
					
						
						
							
						
						0e688dc271 
					 
					
						
						
							
							add kubeconfig  file  
						
						
						
						
					 
					
						2015-01-07 13:09:10 -05:00 
						 
				 
			
				
					
						
							
							
								deads2k 
							
						 
					 
					
						
						
							
						
						2dbfb80349 
					 
					
						
						
							
							add utility for binding flags and building api server clients  
						
						
						
						
					 
					
						2014-11-26 07:50:51 -05:00 
						 
				 
			
				
					
						
							
							
								Clayton Coleman 
							
						 
					 
					
						
						
							
						
						09cfa364c5 
					 
					
						
						
							
							Refactor Get and Describe to allow extension of types  
						
						... 
						
						
						
						Get should use ResourceMapper, allow Printer to be abstracted,
and extract Describe as *Describer types. 
						
						
					 
					
						2014-11-04 10:44:56 -05:00 
						 
				 
			
				
					
						
							
							
								Sam Ghods 
							
						 
					 
					
						
						
							
						
						4b220f8b0a 
					 
					
						
						
							
							kubectl: kubecfg rewrite for better modularity and improved UX  
						
						
						
						
					 
					
						2014-10-15 15:29:54 -07:00