client-go dynamic client: add context to callers
Kubernetes-commit: b7c2faf26c2a25427794478c6265e6d55e8acb5a
This commit is contained in:
		
							parent
							
								
									8c730fc105
								
							
						
					
					
						commit
						2e70c9ff51
					
				|  | @ -17,6 +17,7 @@ limitations under the License. | |||
| package endpoints | ||||
| 
 | ||||
| import ( | ||||
| 	"context" | ||||
| 	"encoding/json" | ||||
| 	"fmt" | ||||
| 	"io" | ||||
|  | @ -781,7 +782,7 @@ func TestWatchHTTPDynamicClientErrors(t *testing.T) { | |||
| 		APIPath: "/" + prefix, | ||||
| 	}).Resource(newGroupVersion.WithResource("simple")) | ||||
| 
 | ||||
| 	_, err := client.Watch(metav1.ListOptions{}) | ||||
| 	_, err := client.Watch(context.TODO(), metav1.ListOptions{}) | ||||
| 	if err == nil { | ||||
| 		t.Fatal(err) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue