mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Wrap errors when running Bind plugins
Signed-off-by: Aldo Culquicondor <acondor@google.com> Change-Id: I29f8d3ea219a5cf667cf718545e8dfff971ca6ec
This commit is contained in:
		@@ -743,9 +743,9 @@ func (f *frameworkImpl) RunBindPlugins(ctx context.Context, state *framework.Cyc
 | 
				
			|||||||
			continue
 | 
								continue
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if !status.IsSuccess() {
 | 
							if !status.IsSuccess() {
 | 
				
			||||||
			msg := fmt.Sprintf("plugin %q failed to bind pod \"%v/%v\": %v", bp.Name(), pod.Namespace, pod.Name, status.Message())
 | 
								err := fmt.Errorf("plugin %q failed to bind pod \"%v/%v\": %w", bp.Name(), pod.Namespace, pod.Name, status.AsError())
 | 
				
			||||||
			klog.Error(msg)
 | 
								klog.Error(err)
 | 
				
			||||||
			return framework.NewStatus(framework.Error, msg)
 | 
								return framework.AsStatus(err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		return status
 | 
							return status
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user