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

Export internal/tls package for use in execd plugins #7697

Merged
merged 2 commits into from
Jun 25, 2020
Merged

Conversation

danielnelson
Copy link
Contributor

closes #7687

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson danielnelson added this to the 1.15.0 milestone Jun 17, 2020
@danielnelson danielnelson requested review from reimda and ssoroka June 17, 2020 01:50
@reimda
Copy link
Contributor

reimda commented Jun 17, 2020

Looking in internal/ there is other code that is useful in plugins. A quick grep shows plugins using tls most but also rcon, limiter, docker, globpath, syslog, rotate, etc. internal.Duration is used everywhere.

If we fix just tls we're going to have other execd plugin writers request these as they need them. Should we make a more comprehensive fix that covers more of the code in internal?

@danielnelson
Copy link
Contributor Author

Some of these should be exposed but I can do them in separate pull requests.

@ssoroka
Copy link
Contributor

ssoroka commented Jun 18, 2020

fyi @reimda internal.Duration is deprecated in favor of config.Duration, it just hasn't been removed from the project yet.

@danielnelson danielnelson merged commit c73ed8c into master Jun 25, 2020
@danielnelson danielnelson deleted the export-tls branch June 25, 2020 18:44
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make telegraf/internal/tls public interface for plugins written using execd/shim
3 participants