mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Merge pull request #41474 from wojtek-t/debug_decode_parameters
Automatic merge from submit-queue (batch tested with PRs 41332, 41069, 41470, 41474) Fix unnecessary conversions in parameter codec. Fix #41472 @deads2k @smarterclayton @sttts
This commit is contained in:
		@@ -161,11 +161,12 @@ func (c *parameterCodec) DecodeParameters(parameters url.Values, from schema.Gro
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
	targetGVK := targetGVKs[0]
 | 
			
		||||
	if targetGVK.GroupVersion() == from {
 | 
			
		||||
		return c.convertor.Convert(¶meters, into, nil)
 | 
			
		||||
	for i := range targetGVKs {
 | 
			
		||||
		if targetGVKs[i].GroupVersion() == from {
 | 
			
		||||
			return c.convertor.Convert(¶meters, into, nil)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	input, err := c.creator.New(from.WithKind(targetGVK.Kind))
 | 
			
		||||
	input, err := c.creator.New(from.WithKind(targetGVKs[0].Kind))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user