Fix kubelet log message when starting a container
Fix kubelet log message when starting a container

This code can be called not only when a container is dead and restarted,
but when is started for the first time too. For example, any pod with
initContainer and containers will exhibit this behaviour. The reason is
that in that case, the "if createPodSandbox" path will return the
initContainers only and on the next call to this function this code is
executed to start the containers for the fist time.

In that case, it is wrong to log that the container is dead and will be
restarted, as it was never started. In fact, the restart count will not
be increased.

This commit just changes this to say that the container is not in the
desired state and should be started. In the end, the kubelet is a state
machine and that is all we really care about.

No tests are added, as the behaviour was correct and tests don't check
logs messages.

Signed-off-by: Rodrigo Campos <6dfa9cecb562e345739f2e4eb69e9ebd0fbff687@kinvolk.io>

k82/kubernetes,jsafrane/kubernetes,zhouhaibing089/kubernetes,sanjeevm0/kubernetes,PI-Victor/kubernetes,krmayankk/kubernetes,jingxu97/kubernetes,dlorenc/kubernetes,humblec/kubernetes,sdminonne/kubernetes,humblec/kubernetes,nikhita/kubernetes,stevesloka/kubernetes,nikhita/kubernetes,alejandroEsc/kubernetes,spzala/kubernetes,kevensen/kubernetes,fgimenez/kubernetes,krmayankk/kubernetes,yujuhong/kubernetes,idvoretskyi/kubernetes,hex108/kubernetes,enj/kubernetes,Acidburn0zzz/kubernetes,ping035627/kubernetes,kubernetes/kubernetes,ingvagabund/kubernetes,bparees/kubernetes,li-ang/kubernetes,jessfraz/kubernetes,xychu/kubernetes,verb/kubernetes,yujuhong/kubernetes,liggitt/kubernetes,kpgriffith/kubernetes,mkumatag/kubernetes,carlory/kubernetes,cmluciano/kubernetes,xychu/kubernetes,MikeSpreitzer/kubernetes,ingvagabund/kubernetes,dixudx/kubernetes,olivierlemasle/kubernetes,weiwei04/kubernetes,tengqm/kubernetes,fabriziopandini/kubernetes,enj/kubernetes,gnufied/kubernetes,mfojtik/kubernetes,rrati/kubernetes,spzala/kubernetes,li-ang/kubernetes,kevensen/kubernetes,micahhausler/kubernetes,cofyc/kubernetes,mahak/kubernetes,brendandburns/kubernetes,BenTheElder/kubernetes,andrewrynhard/kubernetes,idvoretskyi/kubernetes,verb/kubernetes,bparees/kubernetes,xlgao-zju/kubernetes,brendandburns/kubernetes,ii/kubernetes,mikebrow/kubernetes,cmluciano/kubernetes,pires/kubernetes,zhangmingld/kubernetes,Acidburn0zzz/kubernetes,tcnghia/kubernetes,olivierlemasle/kubernetes,kpgriffith/kubernetes,hex108/kubernetes,cofyc/kubernetes,xychu/kubernetes,chrislovecnm/kubernetes,BenTheElder/kubernetes,mengqiy/kubernetes,JacobTanenbaum/kubernetes,spzala/kubernetes,Acidburn0zzz/kubernetes,micahhausler/kubernetes,rrati/kubernetes,jagosan/kubernetes,ii/kubernetes,k82/kubernetes,x13n/kubernetes,rafax/kubernetes,rrati/kubernetes,dims/kubernetes,BenTheElder/kubernetes,andrewrynhard/kubernetes,erwinvaneyk/kubernetes,liggitt/kubernetes,dlorenc/kubernetes,bparees/kubernetes,JacobTanenbaum/kubernetes,jackfrancis/kubernetes,dereknex/kubernetes,fgimenez/kubernetes,liggitt/kubernetes,jingxu97/kubernetes,rnaveiras/kubernetes,jdef/kubernetes,chrislovecnm/kubernetes,linux-on-ibm-z/kubernetes,zhouhaibing089/kubernetes,linux-on-ibm-z/kubernetes,kubernetes/kubernetes,openshift/kubernetes,cofyc/kubernetes,enj/kubernetes,shyamjvs/kubernetes,kevin-wangzefeng/kubernetes,saad-ali/kubernetes,dims/kubernetes,sdminonne/kubernetes,gnufied/kubernetes,bparees/kubernetes,k82cn/kubernetes,verult/kubernetes,coolsvap/kubernetes,rafax/kubernetes,openshift/kubernetes,ravisantoshgudimetla/kubernetes,deads2k/kubernetes,PI-Victor/kubernetes,yujuhong/kubernetes,fanzhangio/kubernetes,zhangmingld/kubernetes,wongma7/kubernetes,csrwng/kubernetes,ingvagabund/kubernetes,lojies/kubernetes,ping035627/kubernetes,MHBauer/kubernetes,liggitt/kubernetes,kpgriffith/kubernetes,mYmNeo/kubernetes,nak3/kubernetes,iameli/kubernetes,mfojtik/kubernetes,Lion-Wei/kubernetes,li-ang/kubernetes,carlory/kubernetes,lojies/kubernetes,kevin-wangzefeng/kubernetes,kevin-wangzefeng/kubernetes,jessfraz/kubernetes,kitt1987/kubernetes,iameli/kubernetes,rrati/kubernetes,tomzhang/kubernetes,mYmNeo/kubernetes,sdminonne/kubernetes,Lion-Wei/kubernetes,fanzhangio/kubernetes,kevensen/kubernetes,joelsmith/kubernetes,idvoretskyi/kubernetes,PiotrProkop/kubernetes,ravilr/kubernetes,JacobTanenbaum/kubernetes,nckturner/kubernetes,krmayankk/kubernetes,pires/kubernetes,idvoretskyi/kubernetes,nak3/kubernetes,Clarifai/kubernetes,ravilr/kubernetes,GulajavaMinistudio/kubernetes,tcnghia/kubernetes,shyamjvs/kubernetes,mosoft521/kubernetes,coolsvap/kubernetes,spzala/kubernetes,ii/kubernetes,fgimenez/kubernetes,warmchang/kubernetes,wongma7/kubernetes,jackfrancis/kubernetes,iterion/kubernetes,micahhausler/kubernetes,kitt1987/kubernetes,nak3/kubernetes,ingvagabund/kubernetes,yujuhong/kubernetes,dlorenc/kubernetes,pires/kubernetes,dereknex/kubernetes,ravisantoshgudimetla/kubernetes,jdef/kubernetes,tengqm/kubernetes,tomzhang/kubernetes,MHBauer/kubernetes,iterion/kubernetes,jsafrane/kubernetes,mosoft521/kubernetes,krmayankk/kubernetes,feiskyer/kubernetes,lojies/kubernetes,k82/kubernetes,andrewsykim/kubernetes,deads2k/kubernetes,yujuhong/kubernetes,k82/kubernetes,zhangmingld/kubernetes,k82cn/kubernetes,iameli/kubernetes,joelsmith/kubernetes,saad-ali/kubernetes,cblecker/kubernetes,k82cn/kubernetes,kevensen/kubernetes,kevensen/kubernetes,tcnghia/kubernetes,dixudx/kubernetes,dixudx/kubernetes,dlorenc/kubernetes,csrwng/kubernetes,JacobTanenbaum/kubernetes,GulajavaMinistudio/kubernetes,zhangmingld/kubernetes,rnaveiras/kubernetes,kubernetes/kubernetes,nikhita/kubernetes,tomzhang/kubernetes,xlgao-zju/kubernetes,x13n/kubernetes,MHBauer/kubernetes,chrislovecnm/kubernetes,sanjeevm0/kubernetes,matthyx/kubernetes,Acidburn0zzz/kubernetes,micahhausler/kubernetes,k82cn/kubernetes,liggitt/kubernetes,JacobTanenbaum/kubernetes,jagosan/kubernetes,jagosan/kubernetes,wongma7/kubernetes,yujuhong/kubernetes,andrewrynhard/kubernetes,jdef/kubernetes,mfojtik/kubernetes,fgimenez/kubernetes,cofyc/kubernetes,gnufied/kubernetes,pires/kubernetes,thockin/kubernetes,dixudx/kubernetes,tpepper/kubernetes,BenTheElder/kubernetes,aledbf/kubernetes,PiotrProkop/kubernetes,x13n/kubernetes,monopole/kubernetes,ping035627/kubernetes,rafax/kubernetes,dims/kubernetes,mahak/kubernetes,dereknex/kubernetes,tengqm/kubernetes,linux-on-ibm-z/kubernetes,kitt1987/kubernetes,jdef/kubernetes,monopole/kubernetes,kubernetes/kubernetes,mengqiy/kubernetes,rnaveiras/kubernetes,nikhita/kubernetes,jsafrane/kubernetes,alejandroEsc/kubernetes,mengqiy/kubernetes,nak3/kubernetes,ping035627/kubernetes,zhangmingld/kubernetes,ping035627/kubernetes,roberthbailey/kubernetes,mahak/kubernetes,warmchang/kubernetes,erwinvaneyk/kubernetes,tpepper/kubernetes,carlory/kubernetes,openshift/kubernetes,x13n/kubernetes,mikedanese/kubernetes,kpgriffith/kubernetes,roberthbailey/kubernetes,rnaveiras/kubernetes,soltysh/kubernetes,mikedanese/kubernetes,roberthbailey/kubernetes,chrislovecnm/kubernetes,Clarifai/kubernetes,soltysh/kubernetes,nak3/kubernetes,chestack/kubernetes,tcnghia/kubernetes,roberthbailey/kubernetes,x13n/kubernetes,openshift/kubernetes,Clarifai/kubernetes,BenTheElder/kubernetes,cmluciano/kubernetes,mengqiy/kubernetes,tpepper/kubernetes,mfojtik/kubernetes,PI-Victor/kubernetes,cmluciano/kubernetes,humblec/kubernetes,joelsmith/kubernetes,Acidburn0zzz/kubernetes,coolsvap/kubernetes,jagosan/kubernetes,PI-Victor/kubernetes,verb/kubernetes,linux-on-ibm-z/kubernetes,jingxu97/kubernetes,ravilr/kubernetes,sanjeevm0/kubernetes,zhouhaibing089/kubernetes,sanjeevm0/kubernetes,Acidburn0zzz/kubernetes,alejandroEsc/kubernetes,verult/kubernetes,feiskyer/kubernetes,chestack/kubernetes,Clarifai/kubernetes,openshift/kubernetes,soltysh/kubernetes,gnufied/kubernetes,fabriziopandini/kubernetes,fgimenez/kubernetes,warmchang/kubernetes,weiwei04/kubernetes,jackfrancis/kubernetes,dereknex/kubernetes,MikeSpreitzer/kubernetes,shyamjvs/kubernetes,monopole/kubernetes,hex108/kubernetes,PI-Victor/kubernetes,andrewsykim/kubernetes,tengqm/kubernetes,ii/kubernetes,hex108/kubernetes,brendandburns/kubernetes,kpgriffith/kubernetes,cofyc/kubernetes,xlgao-zju/kubernetes,hex108/kubernetes,coolsvap/kubernetes,PI-Victor/kubernetes,alejandroEsc/kubernetes,fgimenez/kubernetes,tomzhang/kubernetes,verult/kubernetes,lojies/kubernetes,mikedanese/kubernetes,krmayankk/kubernetes,cblecker/kubernetes,xlgao-zju/kubernetes,olivierlemasle/kubernetes,dlorenc/kubernetes,jessfraz/kubernetes,jingxu97/kubernetes,aledbf/kubernetes,thockin/kubernetes,jessfraz/kubernetes,coolsvap/kubernetes,iterion/kubernetes,mkumatag/kubernetes,thockin/kubernetes,Clarifai/kubernetes,saad-ali/kubernetes,k82/kubernetes,mengqiy/kubernetes,saad-ali/kubernetes,iterion/kubernetes,erwinvaneyk/kubernetes,erwinvaneyk/kubernetes,mikebrow/kubernetes,fabriziopandini/kubernetes,jagosan/kubernetes,dlorenc/kubernetes,ravisantoshgudimetla/kubernetes,cmluciano/kubernetes,tomzhang/kubernetes,xychu/kubernetes,coolsvap/kubernetes,dereknex/kubernetes,shyamjvs/kubernetes,zhouhaibing089/kubernetes,brendandburns/kubernetes,mosoft521/kubernetes,fanzhangio/kubernetes,zhouhaibing089/kubernetes,Clarifai/kubernetes,dixudx/kubernetes,olivierlemasle/kubernetes,fanzhangio/kubernetes,csrwng/kubernetes,mosoft521/kubernetes,stevesloka/kubernetes,matthyx/kubernetes,jackfrancis/kubernetes,JacobTanenbaum/kubernetes,rafax/kubernetes,kitt1987/kubernetes,warmchang/kubernetes,aledbf/kubernetes,tomzhang/kubernetes,kpgriffith/kubernetes,mYmNeo/kubernetes,mkumatag/kubernetes,Lion-Wei/kubernetes,olivierlemasle/kubernetes,deads2k/kubernetes,Lion-Wei/kubernetes,thockin/kubernetes,MikeSpreitzer/kubernetes,dereknex/kubernetes,spzala/kubernetes,Lion-Wei/kubernetes,jsafrane/kubernetes,tcnghia/kubernetes,roberthbailey/kubernetes,alejandroEsc/kubernetes,stevesloka/kubernetes,iterion/kubernetes,matthyx/kubernetes,rrati/kubernetes,mikedanese/kubernetes,PiotrProkop/kubernetes,cblecker/kubernetes,csrwng/kubernetes,GulajavaMinistudio/kubernetes,mahak/kubernetes,kitt1987/kubernetes,soltysh/kubernetes,cblecker/kubernetes,nckturner/kubernetes,mfojtik/kubernetes,ii/kubernetes,weiwei04/kubernetes,matthyx/kubernetes,andrewsykim/kubernetes,joelsmith/kubernetes,sdminonne/kubernetes,PiotrProkop/kubernetes,brendandburns/kubernetes,MikeSpreitzer/kubernetes,verb/kubernetes,tomzhang/kubernetes,carlory/kubernetes,ravisantoshgudimetla/kubernetes,kubernetes/kubernetes,Lion-Wei/kubernetes,carlory/kubernetes,jackfrancis/kubernetes,aledbf/kubernetes,mYmNeo/kubernetes,jessfraz/kubernetes,li-ang/kubernetes,zhangmingld/kubernetes,brendandburns/kubernetes,iameli/kubernetes,iterion/kubernetes,tcnghia/kubernetes,mkumatag/kubernetes,fabriziopandini/kubernetes,MHBauer/kubernetes,rnaveiras/kubernetes,dims/kubernetes,wongma7/kubernetes,stevesloka/kubernetes,warmchang/kubernetes,csrwng/kubernetes,jdef/kubernetes,feiskyer/kubernetes,mkumatag/kubernetes,sdminonne/kubernetes,dims/kubernetes,cmluciano/kubernetes,stevesloka/kubernetes,MikeSpreitzer/kubernetes,kevin-wangzefeng/kubernetes,ravisantoshgudimetla/kubernetes,fanzhangio/kubernetes,mikebrow/kubernetes,idvoretskyi/kubernetes,idvoretskyi/kubernetes,aledbf/kubernetes,mfojtik/kubernetes,mYmNeo/kubernetes,soltysh/kubernetes,andrewrynhard/kubernetes,mahak/kubernetes,tengqm/kubernetes,lojies/kubernetes,sanjeevm0/kubernetes,tomzhang/kubernetes,wongma7/kubernetes,MHBauer/kubernetes,kitt1987/kubernetes,saad-ali/kubernetes,jsafrane/kubernetes,ingvagabund/kubernetes,jingxu97/kubernetes,nckturner/kubernetes,PiotrProkop/kubernetes,chestack/kubernetes,weiwei04/kubernetes,xlgao-zju/kubernetes,weiwei04/kubernetes,sanjeevm0/kubernetes,jdef/kubernetes,verult/kubernetes,andrewrynhard/kubernetes,monopole/kubernetes,pires/kubernetes,mikedanese/kubernetes,andrewsykim/kubernetes,joelsmith/kubernetes,xychu/kubernetes,andrewrynhard/kubernetes,ravisantoshgudimetla/kubernetes,mikebrow/kubernetes,tpepper/kubernetes,pires/kubernetes,mYmNeo/kubernetes,fabriziopandini/kubernetes,linux-on-ibm-z/kubernetes,deads2k/kubernetes,MHBauer/kubernetes,verult/kubernetes,gnufied/kubernetes,xychu/kubernetes,stevesloka/kubernetes,fanzhangio/kubernetes,nak3/kubernetes,GulajavaMinistudio/kubernetes,chestack/kubernetes,mosoft521/kubernetes,nikhita/kubernetes,nckturner/kubernetes,ingvagabund/kubernetes,chestack/kubernetes,erwinvaneyk/kubernetes,feiskyer/kubernetes,humblec/kubernetes,bparees/kubernetes,cblecker/kubernetes,monopole/kubernetes,enj/kubernetes,feiskyer/kubernetes,xlgao-zju/kubernetes,cofyc/kubernetes,GulajavaMinistudio/kubernetes,ravilr/kubernetes,andrewsykim/kubernetes,thockin/kubernetes,weiwei04/kubernetes,nckturner/kubernetes,mikebrow/kubernetes,tomzhang/kubernetes,tpepper/kubernetes,chrislovecnm/kubernetes,enj/kubernetes,verb/kubernetes,humblec/kubernetes,shyamjvs/kubernetes,verult/kubernetes,iameli/kubernetes,k82cn/kubernetes,x13n/kubernetes,andrewsykim/kubernetes,kevin-wangzefeng/kubernetes,krmayankk/kubernetes,hex108/kubernetes,li-ang/kubernetes,micahhausler/kubernetes,ravilr/kubernetes,saad-ali/kubernetes,joelsmith/kubernetes,deads2k/kubernetes,erwinvaneyk/kubernetes,tpepper/kubernetes,chrislovecnm/kubernetes,matthyx/kubernetes