change import alias to metav1
parent
914ce348dc
commit
307502a73a
|
|
@ -3,7 +3,7 @@ package k8s
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"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"
|
||||||
"k8s.io/client-go/tools/clientcmd/api"
|
"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.
|
// 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()
|
ctxs, err := c.Config().Contexts()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue