mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 17:16:12 +00:00
fix kubemark flushlogs not working together with os.Exit()
Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
@@ -132,8 +132,9 @@ func NewHollowProxyOrDie(
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (hp *HollowProxy) Run() {
|
||||
func (hp *HollowProxy) Run() error {
|
||||
if err := hp.ProxyServer.Run(); err != nil {
|
||||
klog.Fatalf("Error while running proxy: %v\n", err)
|
||||
return fmt.Errorf("Error while running proxy: %w", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user