Update client callers to use explicit versions

Kubernetes-commit: d1e865ee341ba37469efed8c935e22e2b483eec2
This commit is contained in:
Jordan Liggitt
2019-02-22 10:27:46 -05:00
committed by Kubernetes Publisher
parent d2861e956f
commit e6881e4a02
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ func TestFakeClient(t *testing.T) {
// Inject an event into the fake client. // Inject an event into the fake client.
p := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "my-pod"}} p := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "my-pod"}}
_, err := client.Core().Pods("test-ns").Create(p) _, err := client.CoreV1().Pods("test-ns").Create(p)
if err != nil { if err != nil {
t.Errorf("error injecting pod add: %v", err) t.Errorf("error injecting pod add: %v", err)
} }

View File

@@ -182,10 +182,10 @@ func TestNewInformerWatcher(t *testing.T) {
lw := &cache.ListWatch{ lw := &cache.ListWatch{
ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { ListFunc: func(options metav1.ListOptions) (runtime.Object, error) {
return fake.Core().Secrets("").List(options) return fake.CoreV1().Secrets("").List(options)
}, },
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
return fake.Core().Secrets("").Watch(options) return fake.CoreV1().Secrets("").Watch(options)
}, },
} }
_, _, w, done := NewIndexerInformerWatcher(lw, &corev1.Secret{}) _, _, w, done := NewIndexerInformerWatcher(lw, &corev1.Secret{})