mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
Handle error correctly in kubee-proxy command
Signed-off-by: Johannes M. Scheuermann <joh.scheuer@gmail.com>
This commit is contained in:
parent
f22b67dd8f
commit
352564714a
@ -435,7 +435,10 @@ with the apiserver API to configure the proxy.`,
|
||||
if err := opts.Validate(args); err != nil {
|
||||
klog.Fatalf("failed validate: %v", err)
|
||||
}
|
||||
klog.Fatal(opts.Run())
|
||||
|
||||
if err := opts.Run(); err != nil {
|
||||
klog.Exit(err)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user