-
Couldn't load subscription status.
- Fork 2.1k
k8s-operator: send operator logs to tailscale #17110
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
Conversation
6e15213 to
a0201b3
Compare
|
Sorry I gave this approval because lgtm, but I'm gonna test it myself just to be sure! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just putting this here to remove the approval for now - I'll manually test then approve again
Accidental approval/request
a0201b3 to
133ead6
Compare
9b5345f to
126f0ff
Compare
34d5faa to
84b493b
Compare
This commit modifies the k8s operator to wrap its logger using the logtail logger provided via the tsnet server. This causes any logs written by the operator to make their way to Tailscale in the same fashion as wireguard logs to be used by support. This functionality can also be opted-out of entirely using the "TS_NO_LOGS_NO_SUPPORT" environment variable. Updates tailscale/corp#32037 Signed-off-by: David Bond <davidsbond93@gmail.com>
84b493b to
c6f410c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
| // We use a tee logger here so that logs are written to stdout/stderr normally while at the same time being | ||
| // sent upstream. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this comment is sort of redundant as it's covered by the good comment on the function
This commit modifies the k8s operator to wrap its logger using the logtail
logger provided via the tsnet server. This causes any logs written by
the operator to make their way to Tailscale in the same fashion as
wireguard logs to be used by support.
This functionality can also be opted-out of entirely using the
"TS_NO_LOGS_NO_SUPPORT" environment variable.
Updates https://github.com/tailscale/corp/issues/32037