-
Notifications
You must be signed in to change notification settings - Fork 682
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
Adds log-path
to the Contour cli
#5813
Conversation
The main motivation is that I want to use this to redirect the logs of the preStop hook to `/proc/1/fd/1` so it is visible in kubectl logs. Signed-off-by: Sotiris Nanopoulos <[email protected]>
Signed-off-by: Sotiris Nanopoulos <[email protected]>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #5813 +/- ##
==========================================
- Coverage 78.61% 78.50% -0.12%
==========================================
Files 138 138
Lines 19265 19317 +52
==========================================
+ Hits 15146 15164 +18
- Misses 3830 3861 +31
- Partials 289 292 +3
|
Signed-off-by: Sotiris Nanopoulos <[email protected]>
Signed-off-by: Sotiris Nanopoulos <[email protected]>
The Contour project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
@projectcontour/maintainers are you interested in the PR above? I am done debugging the issue I was facing, I used this in our fork to test things out and it was a nice QOL improvement for me. I would recommend we put in a path to merge but if you y'all are not interested I will close it |
I am debugging a
shutdown
issue and getting logs fromshutdown
manager is generally tricky becausepreStop
command logs don't appear inkubectl logs
or generally anywhere unless there is an error.To debug this issue I use this PR in our local PR that adds a
log-path
parameter to contour and redirected the output of the preStop hook to/proc/1/fd/1
. See this relevant stackoverflow threadIf I found it useful I believe other people might so I pushed it here as well in case you believe it is generally helpful