change import alias to metav1

mine
Gustavo Silva Paiva 2019-11-08 14:03:58 -03:00 committed by GitHub
parent 914ce348dc
commit 307502a73a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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