mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-28 13:45:50 +00:00
add NetworkStatus in NetworkPlugin interface for kubelet to consume
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user