deploy: move cancellation event just after the deployment update
deploy: move cancellation event just after the deployment update

There are cases when the current cancellation event won't be emitted.
For example, the deployer pod never schedules and the user cancels the
deployment. The deployer pod gets deleted and the deployment transitions
to Pending. During the next sync, the cancellation event won't be emitted
because deployerErr will be NotFound. Cancellation is also racy so until
you actually update the deployment to cancelled you can never be sure that
the deployer pod won't succeed prior to the user cancelling the deployment.

liangxia/origin,chmouel/origin,dmage/origin,juanvallejo/origin,wjiangjay/origin,liangxia/origin,eparis/origin,markllama/origin,aveshagarwal/origin,nhr/origin,stevekuznetsov/origin,tdawson/origin,jwhonce/origin,dmage/origin,mkumatag/origin,aveshagarwal/origin,kargakis/origin,abutcher/origin,anpingli/origin,arilivigni/origin,hferentschik/origin,sallyom/origin,rajatchopra/origin,sdminonne/origin,jeffvance/origin,sallyom/origin,mkumatag/origin,eparis/origin,JacobTanenbaum/origin,ramr/origin,imcsk8/origin,spadgett/origin,rhcarvalho/origin,tnozicka/origin,sspeiche/origin,jwhonce/origin,linzhaoming/origin,csrwng/origin,thrasher-redhat/origin,liggitt/origin,chmouel/origin,sferich888/origin,wjiangjay/origin,luciddreamz/origin,legionus/origin,spadgett/origin,hferentschik/origin,maxamillion/origin,jprukner/origin,mrogers950/origin,inlandsee/origin,chlunde/origin,anpingli/origin,detiber/origin,elyscape/origin,chlunde/origin,miminar/origin,detiber/origin,wanghaoran1988/origin,linzhaoming/origin,childsb/origin,jupierce/origin,pecameron/origin,markllama/origin,jprukner/origin,goern/origin,dcbw/origin,tnozicka/origin,dcbw/origin,childsb/origin,deads2k/origin,dcbw/origin,simo5/origin,aveshagarwal/origin,ryanj/origin,louyihua/origin,matthyx/origin,maxamillion/origin,aveshagarwal/origin,juanvallejo/origin,adelton/origin,bparees/origin,pecameron/origin,markllama/origin,ironcladlou/origin,php-coder/origin,enj/origin,ncdc/origin,ncdc/origin,pweil-/origin,legionus/origin,inlandsee/origin,liggitt/origin,dgoodwin/origin,soltysh/origin,nak3/origin,arilivigni/origin,miminar/origin,ironcladlou/origin,rajatchopra/origin,rhamilto/origin,marun/origin,ingvagabund/origin,php-coder/origin,soltysh/origin,danmcp/origin,wjiangjay/origin,louyihua/origin,kargakis/origin,enj/origin,rootfs/origin,ncdc/origin,imcsk8/origin,danmcp/origin,wjiangjay/origin,marun/origin,php-coder/origin,mahak/origin,ncdc/origin,soltysh/origin,miminar/origin,arilivigni/origin,jupierce/origin,JacobTanenbaum/origin,pmorie/origin,zhaosijun/origin,imcsk8/origin,mdshuai/origin,liggitt/origin,mahak/origin,eparis/origin,linzhaoming/origin,ironcladlou/origin,rrati/origin,abutcher/origin,ravisantoshgudimetla/origin,imcsk8/origin,coreydaley/origin,openshift/origin,jwhonce/origin,gabemontero/origin,tnozicka/origin,ingvagabund/origin,PI-Victor/origin,liangxia/origin,PI-Victor/origin,jeremyeder/origin,ramr/origin,xiuwang/origin,juanvallejo/origin,bparees/origin,rajatchopra/origin,robertol/origin,imcsk8/origin,markllama/origin,nhr/origin,dgoodwin/origin,coreydaley/origin,inlandsee/origin,liggitt/origin,luciddreamz/origin,mdshuai/origin,hroyrh/origin,jpeeler/origin,spadgett/origin,dobbymoodge/origin,dobbymoodge/origin,ramr/origin,smarterclayton/origin,sdminonne/origin,ravisantoshgudimetla/origin,luciddreamz/origin,mahak/origin,eparis/origin,jwhonce/origin,sspeiche/origin,sjug/origin,ravisantoshgudimetla/origin,pmorie/origin,simo5/origin,adelton/origin,dgoodwin/origin,adelton/origin,robertol/origin,chmouel/origin,rhamilto/origin,jeremyeder/origin,maxamillion/origin,juanvallejo/origin,dinhxuanvu/origin,raffaelespazzoli/origin,dobbymoodge/origin,pmorie/origin,sspeiche/origin,jprukner/origin,jeremyeder/origin,thrasher-redhat/origin,marun/origin,jsafrane/origin,akram/origin,louyihua/origin,sg00dwin/origin,jupierce/origin,adelton/origin,jeffvance/origin,linzhaoming/origin,luciddreamz/origin,louyihua/origin,childsb/origin,rhcarvalho/origin,goern/origin,akram/origin,PI-Victor/origin,sjug/origin,simo5/origin,liangxia/origin,smarterclayton/origin,Miciah/origin,dobbymoodge/origin,zhaosijun/origin,jim-minter/origin,elyscape/origin,jeremyeder/origin,php-coder/origin,pweil-/origin,xiuwang/origin,luciddreamz/origin,wanghaoran1988/origin,sferich888/origin,legionus/origin,aveshagarwal/origin,pmorie/origin,ingvagabund/origin,bparees/origin,smarterclayton/origin,elyscape/origin,Miciah/origin,mkumatag/origin,jprukner/origin,stevekuznetsov/origin,detiber/origin,wanghaoran1988/origin,chlunde/origin,robertol/origin,rhcarvalho/origin,php-coder/origin,jprukner/origin,openshift/origin,simo5/origin,wjiangjay/origin,kargakis/origin,hferentschik/origin,dinhxuanvu/origin,robertol/origin,smarterclayton/origin,openshift/origin,kargakis/origin,pravisankar/origin,jim-minter/origin,xiuwang/origin,ryanj/origin,ramr/origin,wanghaoran1988/origin,childsb/origin,jsafrane/origin,jpeeler/origin,juanvallejo/origin,pmorie/origin,rhcarvalho/origin,maxamillion/origin,deads2k/origin,gabemontero/origin,pravisankar/origin,liangxia/origin,dcbw/origin,liggitt/origin,dmage/origin,juanvallejo/origin,liggitt/origin,dinhxuanvu/origin,nhr/origin,robertol/origin,mfojtik/origin,jpeeler/origin,rhamilto/origin,abutcher/origin,detiber/origin,rhamilto/origin,childsb/origin,chmouel/origin,luciddreamz/origin,ramr/origin,legionus/origin,kargakis/origin,enj/origin,thrasher-redhat/origin,ryanj/origin,sjug/origin,csrwng/origin,mrogers950/origin,abutcher/origin,ryanj/origin,matthyx/origin,jeffvance/origin,spadgett/origin,elyscape/origin,raffaelespazzoli/origin,hferentschik/origin,pravisankar/origin,rrati/origin,imcsk8/origin,dgoodwin/origin,sg00dwin/origin,mdshuai/origin,sdminonne/origin,maxamillion/origin,tnozicka/origin,rrati/origin,jsafrane/origin,thrasher-redhat/origin,jwhonce/origin,zhaosijun/origin,mrogers950/origin,mdshuai/origin,hroyrh/origin,rajatchopra/origin,tnozicka/origin,rajatchopra/origin,dinhxuanvu/origin,hferentschik/origin,abutcher/origin,smarterclayton/origin,dmage/origin,ravisantoshgudimetla/origin,childsb/origin,marun/origin,ravisantoshgudimetla/origin,legionus/origin,stevekuznetsov/origin,jpeeler/origin,dobbymoodge/origin,nhr/origin,anpingli/origin,sallyom/origin,ryanj/origin,mrogers950/origin,jwhonce/origin,rrati/origin,markllama/origin,rajatchopra/origin,dgoodwin/origin,kargakis/origin,jupierce/origin,detiber/origin,mfojtik/origin,mdshuai/origin,PI-Victor/origin,deads2k/origin,mrogers950/origin,matthyx/origin,danmcp/origin,liangxia/origin,pravisankar/origin,adelton/origin,raffaelespazzoli/origin,rhcarvalho/origin,stevekuznetsov/origin,tnozicka/origin,csrwng/origin,pecameron/origin,louyihua/origin,sferich888/origin,jpeeler/origin,simo5/origin,sspeiche/origin,PI-Victor/origin,rootfs/origin,ryanj/origin,sg00dwin/origin,wanghaoran1988/origin,tdawson/origin,nak3/origin,goern/origin,danmcp/origin,tdawson/origin,mfojtik/origin,gabemontero/origin,matthyx/origin,jim-minter/origin,mdshuai/origin,rrati/origin,hferentschik/origin,markllama/origin,spadgett/origin,pravisankar/origin,hroyrh/origin,nak3/origin,miminar/origin,miminar/origin,rootfs/origin,pweil-/origin,rootfs/origin,rhamilto/origin,arilivigni/origin,coreydaley/origin,goern/origin,inlandsee/origin,Miciah/origin,php-coder/origin,dobbymoodge/origin,linzhaoming/origin,elyscape/origin,dcbw/origin,dinhxuanvu/origin,zhaosijun/origin,miminar/origin,rootfs/origin,nhr/origin,wjiangjay/origin,mrogers950/origin,raffaelespazzoli/origin,tdawson/origin,matthyx/origin,jeffvance/origin,JacobTanenbaum/origin,chlunde/origin,jeremyeder/origin,robertol/origin,PI-Victor/origin,akram/origin,jupierce/origin,jprukner/origin,sg00dwin/origin