Skip to content

Commit

Permalink
Refactors client context in root
Browse files Browse the repository at this point in the history
Now uses helper class
  • Loading branch information
liamrathke committed Jul 19, 2021
1 parent ff97d79 commit 555bc81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/plugin/views/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ import (
"github.com/vmware-tanzu/octant/pkg/view/component"
"k8s.io/apimachinery/pkg/labels"

"github.com/liamrathke/octant-kubeflow/pkg/plugin/utilities"
"github.com/liamrathke/octant-kubeflow/pkg/plugin/views/root"
)

func BuildRootViewForRequest(request service.Request) (component.Component, error) {
ctx := request.Context()
client := request.DashboardClient()
cc := utilities.ClientContext{Client: request.DashboardClient(), Context: request.Context()}

_, err := client.List(ctx, store.Key{
_, err := cc.List(store.Key{
APIVersion: "v1",
Kind: "Secret",
Selector: &labels.Set{
Expand Down

0 comments on commit 555bc81

Please sign in to comment.