godaddy / godaddy/kubernetes-client

Is there a way to get notification when deploy finished?

Open
#244 3 comments 0 reactions 0 assignees View on GitHub
help wanted request for example
Dominant language
JavaScript
Stars
963
Forks
189
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start with the Kubernetes watch API usage and compare it with `kubectl rollout status deployment/DEPLOYMENT_NAME -w`. Use the client entry point for watching a patched deployment, with done defined as waiting until all controlled pods are ready rather than ending after the patch event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kubernetes, node.js
Domain
api, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.