mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 22:01:06 +00:00 
			
		
		
		
	remove unnecessary factory delegation for RESTClientGetter method
This commit is contained in:
		
				
					committed by
					
						 Maciej Szulik
						Maciej Szulik
					
				
			
			
				
	
			
			
			
						parent
						
							4da73a5f3d
						
					
				
				
					commit
					c85e69aeb9
				
			| @@ -36,7 +36,7 @@ import ( | ||||
| func TestCreateConfigMap(t *testing.T) { | ||||
| 	configMap := &v1.ConfigMap{} | ||||
| 	configMap.Name = "my-configmap" | ||||
| 	tf := cmdtesting.NewTestFactory() | ||||
| 	tf := cmdtesting.NewTestFactory().WithNamespace("test") | ||||
| 	defer tf.Cleanup() | ||||
|  | ||||
| 	codec := legacyscheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...) | ||||
| @@ -55,7 +55,6 @@ func TestCreateConfigMap(t *testing.T) { | ||||
| 			} | ||||
| 		}), | ||||
| 	} | ||||
| 	tf.Namespace = "test" | ||||
| 	ioStreams, _, buf, _ := genericclioptions.NewTestIOStreams() | ||||
| 	cmd := NewCmdCreateConfigMap(tf, ioStreams) | ||||
| 	cmd.Flags().Set("output", "name") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user