add NetworkStatus in NetworkPlugin interface for kubelet to consume

This commit is contained in:
Minhan Xia
2016-04-22 15:23:03 -07:00
parent c0bcc04b8e
commit 265fdd9344
5 changed files with 27 additions and 12 deletions

View File

@@ -89,16 +89,11 @@ func (s *runtimeState) errors() []string {
func newRuntimeState(
runtimeSyncThreshold time.Duration,
configureNetwork bool,
) *runtimeState {
var networkError error = nil
if configureNetwork {
networkError = fmt.Errorf("network state unknown")
}
return &runtimeState{
lastBaseRuntimeSync: time.Time{},
baseRuntimeSyncThreshold: runtimeSyncThreshold,
networkError: networkError,
networkError: fmt.Errorf("network state unknown"),
internalError: nil,
}
}