@ -57,7 +57,7 @@ func (e *Embedded) Kubelet(ctx context.Context, args []string) error {
go func ( ) {
defer func ( ) {
if err := recover ( ) ; err != nil {
logrus . Fatalf( "kubelet panic: %s ", debug . Stack ( ) )
logrus . WithField( "stack ", debug . Stack ( ) ) . Fatalf ( "kubelet panic: %v" , err )
}
} ( )
// The embedded executor doesn't need the kubelet to come up to host any components, and
@ -79,7 +79,7 @@ func (*Embedded) KubeProxy(ctx context.Context, args []string) error {
go func ( ) {
defer func ( ) {
if err := recover ( ) ; err != nil {
logrus . Fatalf( "kube-proxy panic: %s" , debug . Stack ( ) )
logrus . WithField( "stack" , debug . Stack ( ) ) . Fatalf ( "kube-proxy panic: %v" , err )
}
} ( )
logrus . Fatalf ( "kube-proxy exited: %v" , command . ExecuteContext ( ctx ) )
@ -101,7 +101,7 @@ func (*Embedded) APIServer(ctx context.Context, etcdReady <-chan struct{}, args
<- etcdReady
defer func ( ) {
if err := recover ( ) ; err != nil {
logrus . Fatalf( "apiserver panic: %s ", debug . Stack ( ) )
logrus . WithField( "stack ", debug . Stack ( ) ) . Fatalf ( "apiserver panic: %v" , err )
}
} ( )
logrus . Fatalf ( "apiserver exited: %v" , command . ExecuteContext ( ctx ) )
@ -130,7 +130,7 @@ func (e *Embedded) Scheduler(ctx context.Context, apiReady <-chan struct{}, args
}
defer func ( ) {
if err := recover ( ) ; err != nil {
logrus . Fatalf( "scheduler panic: %s ", debug . Stack ( ) )
logrus . WithField( "stack ", debug . Stack ( ) ) . Fatalf ( "scheduler panic: %v" , err )
}
} ( )
logrus . Fatalf ( "scheduler exited: %v" , command . ExecuteContext ( ctx ) )
@ -147,7 +147,7 @@ func (*Embedded) ControllerManager(ctx context.Context, apiReady <-chan struct{}
<- apiReady
defer func ( ) {
if err := recover ( ) ; err != nil {
logrus . Fatalf( "controller-manager panic: % s", debug . Stack ( ) )
logrus . WithField( "stack" , debug . Stack ( ) ) . Fatalf( "controller-manager panic: % v", err )
}
} ( )
logrus . Fatalf ( "controller-manager exited: %v" , command . ExecuteContext ( ctx ) )
@ -180,7 +180,7 @@ func (*Embedded) CloudControllerManager(ctx context.Context, ccmRBACReady <-chan
<- ccmRBACReady
defer func ( ) {
if err := recover ( ) ; err != nil {
logrus . Fatalf( "cloud-controller-manager panic: % s", debug . Stack ( ) )
logrus . WithField( "stack" , debug . Stack ( ) ) . Fatalf( "cloud-controller-manager panic: % v", err )
}
} ( )
logrus . Errorf ( "cloud-controller-manager exited: %v" , command . ExecuteContext ( ctx ) )