Closed dylanratcliffe closed 1 week ago
@dylanratcliffe we use the same termination hook logic in revlink and k8s-source. have you noticed it happening with them as well
I haven't checked revlink. We should use that logic for everything that runs as a pod realistically
i confirmed the code is copy-pasta'ed so its either broken everywhere, or how they are launched, message read is broken.
Other sources dockerfiles that use nobody : /workspace/cli/sources/k8s-source/build/package/Dockerfile /workspace/stdlib-source/build/package/Dockerfile
other services: /workspace/api-server/build/package/Dockerfile /workspace/gateway/build/package/Dockerfile /workspace/revlink/build/package/Dockerfile /workspace/srcman/build/package/Dockerfile
cli sources: /workspace/cli/sources/aws-source/build/package /workspace/cli/sources/k8s-source/build/package
We should also update the terraform in deploy to reflect the new termination-log location /workspace/deploy/modules/ovm-services/gateway.tf
https://github.com/overmindtech/api-server/blob/1f0f906ef4ab168868e11a7a116e719c150a5783/server/source.go#L188-L196 is where we set the error message, but due to there being no log, and the field is omit empty. This never gets sent to the ui
then in k8
deployment didnt work as expected. next steps. due to changes in not wanting to fatal in src's. this is for instrumentation purposes. we no longer hit the fatal / hook in root.go or we write an empty string to the log. we should
I'm not seeing termination error messages in AWS sources. We need to fix this as the user needs to be able to see the message for debugging. Errors should be reported to
/dev/termination_log
which is then picked up by k8s