codewind
codewind copied to clipboard
PFE-Deploy: Use watch API for resources and add redeploy command
Once https://github.com/eclipse/codewind-che-plugin/pull/31 has been merged, we need to look at two sets of changes that couldn't make it into that PR for the Golang pfe-deploy
utility:
- Use the client-go watch API to wait for the Codewind pods to successfully come up and be ready
- Should have a somewhat generous timeout, we used 5 minutes in the past, and that should be enough
- Will help with problem determination if PFE ever fails to come up, can use this to then configure the nginx server to return an error
- Implement a
redeploy
command to make it easy to redeploy Codewind with newer images, useful for development purposes.- Pieces of this are already in place (such as looking for environment variable overrides), but need to decide on a proper mechanism to update the deployments.