Skip to content

Commit

Permalink
bump kubernetes version to v1.4.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
andyxning committed Dec 18, 2016
1 parent 3132378 commit 395d456
Show file tree
Hide file tree
Showing 855 changed files with 418,539 additions and 105,121 deletions.
846 changes: 627 additions & 219 deletions Godeps/Godeps.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pkg/condition/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
problemutil "k8s.io/node-problem-detector/pkg/util"

"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/clock"

"github.com/golang/glog"
)
Expand Down Expand Up @@ -58,15 +58,15 @@ type ConditionManager interface {

type conditionManager struct {
sync.Mutex
clock util.Clock
clock clock.Clock
latest time.Time
client problemclient.Client
updates map[string]types.Condition
conditions map[string]types.Condition
}

// NewConditionManager creates a condition manager.
func NewConditionManager(client problemclient.Client, clock util.Clock) ConditionManager {
func NewConditionManager(client problemclient.Client, clock clock.Clock) ConditionManager {
return &conditionManager{
client: client,
clock: clock,
Expand Down
6 changes: 3 additions & 3 deletions pkg/condition/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ import (
problemutil "k8s.io/node-problem-detector/pkg/util"

"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/clock"
)

func newTestManager() (*conditionManager, *problemclient.FakeProblemClient, *util.FakeClock) {
func newTestManager() (*conditionManager, *problemclient.FakeProblemClient, *clock.FakeClock) {
fakeClient := problemclient.NewFakeProblemClient()
fakeClock := util.NewFakeClock(time.Now())
fakeClock := clock.NewFakeClock(time.Now())
manager := NewConditionManager(fakeClient, fakeClock)
return manager.(*conditionManager), fakeClient, fakeClock
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kernelmonitor/kernel_log_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ import (
"k8s.io/node-problem-detector/pkg/kernelmonitor/types"
"k8s.io/node-problem-detector/pkg/kernelmonitor/util"

utilclock "code.cloudfoundry.org/clock"
"github.com/coreos/go-systemd/sdjournal"
"github.com/golang/glog"
"github.com/google/cadvisor/utils/tail"
utilclock "github.com/pivotal-golang/clock"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/kernelmonitor/kernel_log_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

"k8s.io/node-problem-detector/pkg/kernelmonitor/types"

"github.com/pivotal-golang/clock/fakeclock"
"code.cloudfoundry.org/clock/fakeclock"
)

func TestWatch(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions pkg/problemclient/problem_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ import (
"fmt"
"os"

"k8s.io/kubernetes/pkg/util/clock"

"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/client/record"
"k8s.io/kubernetes/pkg/client/restclient"
client "k8s.io/kubernetes/pkg/client/unversioned"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util"
)

// Client is the interface of problem client
Expand All @@ -43,14 +44,14 @@ type Client interface {
type nodeProblemClient struct {
nodeName string
client *client.Client
clock util.Clock
clock clock.Clock
recorders map[string]record.EventRecorder
nodeRef *api.ObjectReference
}

// NewClientOrDie creates a new problem client, panics if error occurs.
func NewClientOrDie() Client {
c := &nodeProblemClient{clock: util.RealClock{}}
c := &nodeProblemClient{clock: clock.RealClock{}}
cfg, err := restclient.InClusterConfig()
if err != nil {
panic(err)
Expand Down
4 changes: 2 additions & 2 deletions pkg/problemclient/problem_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/client/record"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/clock"

"github.com/stretchr/testify/assert"
)
Expand All @@ -40,7 +40,7 @@ func newFakeProblemClient() *nodeProblemClient {
nodeName: testNode,
// There is no proper fake for *client.Client for now
// TODO(random-liu): Add test for SetConditions when we have good fake for *client.Client
clock: &util.FakeClock{},
clock: &clock.FakeClock{},
recorders: make(map[string]record.EventRecorder),
nodeRef: getNodeRef(testNode),
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/problemdetector/problem_detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package problemdetector
import (
"github.com/golang/glog"

kubeutil "k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/clock"

"k8s.io/node-problem-detector/pkg/condition"
"k8s.io/node-problem-detector/pkg/kernelmonitor"
Expand All @@ -45,7 +45,7 @@ func NewProblemDetector(monitor kernelmonitor.KernelMonitor) ProblemDetector {
client := problemclient.NewClientOrDie()
return &problemDetector{
client: client,
conditionManager: condition.NewConditionManager(client, kubeutil.RealClock{}),
conditionManager: condition.NewConditionManager(client, clock.RealClock{}),
monitor: monitor,
}
}
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions vendor/code.cloudfoundry.org/clock/NOTICE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions vendor/code.cloudfoundry.org/clock/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
6 changes: 3 additions & 3 deletions vendor/github.com/gogo/protobuf/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/gogo/protobuf/proto/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions vendor/github.com/gogo/protobuf/proto/clone.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 395d456

Please sign in to comment.