Conversation
Add new flags to the logs command: * --build get build logs for any running builds * --task get task logs for any running tasks
|
Error returned for a task or build that doesn't have a pod that exists in the namespace needs to be clearer that the pod does not exist anymore to prevent confusion from users when the pod is no longer available Maybe this is something the ssh-portal should handle though |
Good idea!
Yep, I added this feature over on uselagoon/lagoon-ssh-portal#570. It now looks like: |
|
Based on the suggestion in uselagoon/lagoon-ssh-portal#570 (comment) I added |
This change adds support for build and task logs and relies on uselagoon/lagoon-ssh-portal#570.
The
logscommand gets two new flags. The idea is that you can specify--taskto get logs from all running tasks, or--task=nameif you know the name.The
deploysubcommands also gets new flags--followthat stream deploy logs until the deployment completes.I have no idea if this is a good developer UX: feedback requested.
I have tested this manually using the
deploy latestsubcommand, but have not actually tested the other subcommands because I don't have a good test environment for them. Please let me know if they are broken! In particular, the code relies on theresultData.Resultbeing the name of the build. This holds fordeploy latest, but I don't know if it holds for other subcommands?