File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 66 "os/signal"
77 "sync"
88 "syscall"
9+ "time"
910
1011 "github.com/cloudnativelabs/kube-router/pkg/controllers/netpol"
1112 "github.com/cloudnativelabs/kube-router/pkg/controllers/proxy"
@@ -16,8 +17,6 @@ import (
1617 "github.com/cloudnativelabs/kube-router/pkg/version"
1718 "k8s.io/klog/v2"
1819
19- "time"
20-
2120 "k8s.io/client-go/informers"
2221 "k8s.io/client-go/kubernetes"
2322 "k8s.io/client-go/rest"
@@ -126,17 +125,17 @@ func (kr *KubeRouter) Run() error {
126125
127126 if kr .Config .BGPGracefulRestart {
128127 if kr .Config .BGPGracefulRestartTime > time .Second * 4095 {
129- return errors .New ("BGPGracefuleRestartTime should be less than 4095 seconds" )
128+ return errors .New ("BGPGracefulRestartTime should be less than 4095 seconds" )
130129 }
131130 if kr .Config .BGPGracefulRestartTime <= 0 {
132- return errors .New ("BGPGracefuleRestartTime must be positive" )
131+ return errors .New ("BGPGracefulRestartTime must be positive" )
133132 }
134133
135134 if kr .Config .BGPGracefulRestartDeferralTime > time .Hour * 18 {
136- return errors .New ("BGPGracefuleRestartDeferralTime should be less than 18 hours" )
135+ return errors .New ("BGPGracefulRestartDeferralTime should be less than 18 hours" )
137136 }
138137 if kr .Config .BGPGracefulRestartDeferralTime <= 0 {
139- return errors .New ("BGPGracefuleRestartDeferralTime must be positive" )
138+ return errors .New ("BGPGracefulRestartDeferralTime must be positive" )
140139 }
141140 }
142141
You can’t perform that action at this time.
0 commit comments