Skip to content

Commit

Permalink
Update package imports
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieegan3 committed Nov 15, 2022
1 parent c2cb55d commit 0e41c6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions internal/kubernetes/clients/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ func NewCRDClient(config *rest.Config) (*Generic[*v1extensions.CustomResourceDef
&GenericClientOptions{
RestConfig: config,
APIPath: "/apis",
Group: apiextensionsv1.GroupName,
Version: apiextensionsv1.SchemeGroupVersion.Version,
Group: v1extensions.GroupName,
Version: v1extensions.SchemeGroupVersion.Version,
Kind: "customresourcedefinitions",
},
)
Expand Down
16 changes: 8 additions & 8 deletions internal/kubernetes/clients/generic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ func TestGeneric_Get_WithDropFields(t *testing.T) {
Host: server.URL,
}

client, err := NewGenericClient[*v1core.Pod, *v1core.PodList](
client, err := NewGenericClient[*corev1.Pod, *corev1.PodList](
&GenericClientOptions{
RestConfig: cfg,
APIPath: "/api/",
Group: v1core.GroupName,
Version: v1core.SchemeGroupVersion.Version,
Group: corev1.GroupName,
Version: corev1.SchemeGroupVersion.Version,
Kind: "pods",
},
)
require.NoError(t, err)

var result v1core.Pod
var result corev1.Pod

err = client.Get(ctx, &GenericRequestOptions{
Name: "test-pod",
Expand Down Expand Up @@ -132,18 +132,18 @@ func TestGeneric_List_WithDropFields(t *testing.T) {
Host: server.URL,
}

client, err := NewGenericClient[*v1core.Pod, *v1core.PodList](
client, err := NewGenericClient[*corev1.Pod, *corev1.PodList](
&GenericClientOptions{
RestConfig: cfg,
APIPath: "/api/",
Group: v1core.GroupName,
Version: v1core.SchemeGroupVersion.Version,
Group: corev1.GroupName,
Version: corev1.SchemeGroupVersion.Version,
Kind: "pods",
},
)
require.NoError(t, err)

var result v1core.PodList
var result corev1.PodList

err = client.List(ctx, &GenericRequestOptions{
Namespace: "test-namespace",
Expand Down

0 comments on commit 0e41c6e

Please sign in to comment.