client-go: GetOptions for dynamic client

This commit is contained in:
Dr. Stefan Schimanski
2017-06-09 18:02:11 +02:00
parent 88e1ecb4b3
commit 30668b24fb
9 changed files with 23 additions and 18 deletions

View File

@@ -114,7 +114,7 @@ func TestDynamicClient(t *testing.T) {
}
// check dynamic get
unstruct, err := dynamicClient.Resource(&resource, ns.Name).Get(actual.Name)
unstruct, err := dynamicClient.Resource(&resource, ns.Name).Get(actual.Name, metav1.GetOptions{})
if err != nil {
t.Fatalf("unexpected error when getting pod %q: %v", actual.Name, err)
}