mirror of
https://github.com/kubernetes/client-go.git
synced 2025-10-21 13:58:40 +00:00
Make out-of-cluster example buildable
This commit is contained in:
@@ -21,9 +21,9 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"k8s.io/client-go/1.4/kubernetes"
|
||||
"k8s.io/client-go/1.4/pkg/api"
|
||||
"k8s.io/client-go/1.4/tools/clientcmd"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
"k8s.io/client-go/pkg/api/v1"
|
||||
"k8s.io/client-go/tools/clientcmd"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -43,7 +43,7 @@ func main() {
|
||||
panic(err.Error())
|
||||
}
|
||||
for {
|
||||
pods, err := clientset.Core().Pods("").List(api.ListOptions{})
|
||||
pods, err := clientset.Core().Pods("").List(v1.ListOptions{})
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
Reference in New Issue
Block a user