Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Adds log-path to the Contour cli #5813

wants to merge 4 commits into from

Conversation

davinci26
Copy link
Contributor

I am debugging a shutdown issue and getting logs from shutdown manager is generally tricky because preStop command logs don't appear in kubectl 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 thread

If I found it useful I believe other people might so I pushed it here as well in case you believe it is generally helpful

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]>
@davinci26 davinci26 requested a review from a team as a code owner October 9, 2023 00:05
@davinci26 davinci26 requested review from tsaarni and sunjayBhatia and removed request for a team October 9, 2023 00:05
Signed-off-by: Sotiris Nanopoulos <[email protected]>
@davinci26 davinci26 added the release-note/minor A minor change that needs about a paragraph of explanation in the release notes. label Oct 9, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

Merging #5813 (786f457) into main (f03665e) will decrease coverage by 0.12%.
Report is 16 commits behind head on main.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            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     
Files Coverage Δ
cmd/contour/contour.go 0.00% <0.00%> (ø)

... and 10 files with indirect coverage changes

cmd/contour/contour.go Outdated Show resolved Hide resolved
Signed-off-by: Sotiris Nanopoulos <[email protected]>
Signed-off-by: Sotiris Nanopoulos <[email protected]>
@github-actions
Copy link

The Contour project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 14d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, the PR is closed

You can:

  • Mark this PR as fresh by commenting or pushing a commit
  • Close this PR
  • Offer to help out with triage

Please send feedback to the #contour channel in the Kubernetes Slack

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 28, 2023
@davinci26
Copy link
Contributor Author

@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

@github-actions github-actions bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 1, 2023
@davinci26 davinci26 closed this by deleting the head repository Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/minor A minor change that needs about a paragraph of explanation in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants