diff --git a/internal/k8s/context.go b/internal/k8s/context.go index 555a4e35..0572b93b 100644 --- a/internal/k8s/context.go +++ b/internal/k8s/context.go @@ -3,7 +3,7 @@ package k8s import ( "fmt" - v12 "k8s.io/apimachinery/pkg/apis/meta/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd/api" @@ -53,7 +53,7 @@ func (c *Context) Get(_, n string) (interface{}, error) { } // List all Contexts on the current cluster. -func (c *Context) List(string, v12.ListOptions) (Collection, error) { +func (c *Context) List(string, metav1.ListOptions) (Collection, error) { ctxs, err := c.Config().Contexts() if err != nil { return nil, err