-
Notifications
You must be signed in to change notification settings - Fork 0
Add a GRPC Client to invoke the GRPC server to the K8s package #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9252413 to
3f8380d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving but please check the one comment on if we need a retry in that section of code (if so adding a todo for now would be fine)
| if (status?.phase === 'Succeeded') { | ||
| throw new Error(`Failed to get pod ${podName} status`) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without looking too far into the backing code, do we need some backoff / retry here if the pod is still launching or should it already be in a good state given checks that would have already run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So when this step (run-script-step) is called, the pod is already ready. That was in a separate step done prior to this.
|
Thanks! |
Most of the logic is in
packages/k8s/src/hooks/run-script-step.tsfile.This does not include the ability to not run a script if it has the id yet. It also does not include the code to set up the container with the server.
I will also add some tests in a separate PR.
Also update typescript to 5.0.3 to resolve some issues when running tests.