mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	make kubectl replace generic
This commit is contained in:
		@@ -124,8 +124,11 @@ func RunReplace(f cmdutil.Factory, out io.Writer, cmd *cobra.Command, args []str
 | 
				
			|||||||
		return fmt.Errorf("--timeout must have --force specified")
 | 
							return fmt.Errorf("--timeout must have --force specified")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	mapper, typer := f.Object()
 | 
						mapper, typer, err := f.UnstructuredObject()
 | 
				
			||||||
	r := resource.NewBuilder(mapper, typer, resource.ClientMapperFunc(f.ClientForMapping), f.Decoder(true)).
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						r := resource.NewBuilder(mapper, typer, resource.ClientMapperFunc(f.UnstructuredClientForMapping), runtime.UnstructuredJSONScheme).
 | 
				
			||||||
		Schema(schema).
 | 
							Schema(schema).
 | 
				
			||||||
		ContinueOnError().
 | 
							ContinueOnError().
 | 
				
			||||||
		NamespaceParam(cmdNamespace).DefaultNamespace().
 | 
							NamespaceParam(cmdNamespace).DefaultNamespace().
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user