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

[kubernetes] - Do not check for kubernetes auth token secret if we have TLS certs configured #3221

Closed

Conversation

chen-anders
Copy link

@chen-anders chen-anders commented Feb 27, 2017

What does this PR do?

This PR makes it so we don't check for the kubernetes auth_token if TLS certs are already provided for authentication to the kube-apiserver (when the dd-agent is running on the host). The pre-existing dd-agent should work, but would log noisy "Token not found at /var/run/secrets/kubernetes.io/serviceaccount/token" errors to the logs.

Motivation

What inspired you to submit this pull request? Less noisy logs :)

@xvello xvello self-requested a review July 4, 2017 13:26
xvello added a commit that referenced this pull request Jul 4, 2017
@xvello
Copy link
Contributor

xvello commented Jul 4, 2017

Hello @chen-anders,

This commit 8711e64 from #3401 should fix your use case and remove the log.

Can you please confirm you are happy with this and we can close your PR once this is merged into master?

Regards

@chen-anders
Copy link
Author

Works for me. Thanks @xvello

@xvello xvello closed this in #3401 Jul 6, 2017
@xvello xvello removed their request for review July 6, 2017 13:38
@xvello xvello self-assigned this Jul 6, 2017
@xvello xvello added this to the 5.15 milestone Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants