godaddy/kubernetes-client

Is there a way to get notification when deploy finished?

Open

#244 建立於 2018年3月30日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)JavaScript (954 star) (206 fork)batch import
help wantedrequest for example

描述

Hi, I'm not a Node.js guy so this bothers me much. I'm trying to use kubernetes-client to patch deployment with new images. I'm looking for a way to have the effect like this:

kubectl rollout status deployment/DEPLOYMENT_NAME -w

This command would keep watching deployment updating all pods it controls. When all pods are ready, this command process would end. I've tried watch api, but the 'data' event will be sent out at the moment deployment is patched successfully, and the process end here.

Is there a way I could do the same thing with kubernetes-client? Thanks in advance.

貢獻者指南