Compare commits

...

5 Commits

Author SHA1 Message Date
Chao Xu
1195e3a8ee Merge pull request #94 from caesarxuchao/fix-release-1.5-examples
Fix the import path for examples in release-1.5 branch
2017-02-07 18:33:19 -08:00
Chao Xu
2213a93278 fix the import path for examples 2017-02-07 18:29:52 -08:00
Chao Xu
843f7c4f28 Merge pull request #22 from caesarxuchao/1.5
manually copy the fix the fake_pod_expansion.go
2016-10-23 13:27:10 -07:00
Chao Xu
496ce4be34 manually copy the fix the fake_pod_expansion.go 2016-10-21 10:06:26 -07:00
Chao Xu
4e647cdbb2 Merge pull request #16 from caesarxuchao/1.5
remove 1.4 folder from 1.5 branch
2016-10-17 11:08:08 -07:00
3 changed files with 18 additions and 6 deletions

View File

@@ -18,6 +18,7 @@ package fake
import (
"k8s.io/client-go/1.5/pkg/api/v1"
"k8s.io/client-go/1.5/pkg/apis/policy/v1alpha1"
"k8s.io/client-go/1.5/rest"
"k8s.io/client-go/1.5/testing"
)
@@ -44,3 +45,14 @@ func (c *FakePods) GetLogs(name string, opts *v1.PodLogOptions) *rest.Request {
_, _ = c.Fake.Invokes(action, &v1.Pod{})
return &rest.Request{}
}
func (c *FakePods) Evict(eviction *v1alpha1.Eviction) error {
action := testing.CreateActionImpl{}
action.Verb = "create"
action.Resource = podsResource
action.Subresource = "eviction"
action.Object = eviction
_, err := c.Fake.Invokes(action, eviction)
return err
}

View File

@@ -20,9 +20,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/rest"
"k8s.io/client-go/1.5/kubernetes"
"k8s.io/client-go/1.5/pkg/api"
"k8s.io/client-go/1.5/rest"
)
func main() {

View File

@@ -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/1.5/kubernetes"
"k8s.io/client-go/1.5/pkg/api"
"k8s.io/client-go/1.5/tools/clientcmd"
)
var (