Add fmt.printf for other need

Signed-off-by: huzhifeng <huzhifeng@douyu.tv>
pull/6/head
huzhifeng 2017-08-18 16:07:56 +08:00
parent 3196300fc2
commit 2b3a871df5
No known key found for this signature in database
GPG Key ID: 9A89D953355E739B
3 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,7 @@ limitations under the License.
package main
import (
"fmt"
"os"
"k8s.io/kubernetes/cmd/kubeadm/app"
@ -24,6 +25,7 @@ import (
func main() {
if err := app.Run(); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
os.Exit(0)

View File

@ -17,6 +17,7 @@ limitations under the License.
package main
import (
"fmt"
"os"
"k8s.io/kubernetes/cmd/kubectl/app"
@ -24,6 +25,7 @@ import (
func main() {
if err := app.Run(); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
os.Exit(0)

View File

@ -106,6 +106,7 @@ func main() {
// run the kubelet
if err := app.Run(kubeletServer, kubeletDeps); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
die(err)
}
}