client-go dynamic client: add context to callers

Kubernetes-commit: b7c2faf26c2a25427794478c6265e6d55e8acb5a
This commit is contained in:
Jordan Liggitt 2020-03-06 10:17:41 -05:00 committed by Kubernetes Publisher
parent 8c730fc105
commit 2e70c9ff51
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}