From 307502a73a84be96564c6a265ccbf36c9d518212 Mon Sep 17 00:00:00 2001 From: Gustavo Silva Paiva Date: Fri, 8 Nov 2019 14:03:58 -0300 Subject: [PATCH] change import alias to metav1 --- internal/k8s/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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