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
Ability to block until deploy and port-forward are finished #4022
Comments
What do you mean by The tricky part, AFAIK, is that the port-forward process has to keep running. Are you suggesting that it daemonizes them? |
You can use the events API to be notified of established port-forwards. We'd like to hear more about how you're doing testing, however! This is an area we'd like to improve in Skaffold. |
Yes, I think daemonizing them would be ideal. Let me explain my current workflow:
Pretty standard test cycle imo. What I'd like to see is some sort of option for skaffold to daemonize those port forwards and then know how to properly kill them with some other command Effectively mimic the behavior of running |
Listening to the events is probably fine @briandealwis . I imagine id just fork a skaffold dev and block while listening. Is there an event for "all forwards done"? Another way to solve this would be sort of |
Currently we don't have an event for Portforward completed.
Can you try that ? |
I think the feature proposed here offers a better way to run a functional test suite in CI, and I don't see myself using As a workaround, I'm having to run |
We have plans to improve @gsquared94 do you have an idea if post deploy hooks will run after port-forwarfing is stable ? |
The post-deploy hook appears to run before the port-forwarding is stable, unfortunately. |
Expected behavior
For usage in CI pipelines (specifically integration testing) it would be nice if there was an easy way to do
skaffold run --port-forward
and not have it hang indefinitely. Instead it would simply block until all port forwards have been completed.Currently I run
skaffold run
then manually create the port forwards, but now I've got these port forward definitions duplicated.Is this a feature anyone else is interested in? Is there some easier or already existing way to accomplish this?
The text was updated successfully, but these errors were encountered: