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

Cherry-pick #16527 to 7.x: Add cloudfoundry common client into x-pack/common #16575

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

blakerouse
Copy link
Contributor

Cherry-pick of PR #16527 to 7.x branch. Original message:

What does this PR do?

Prerequisite to adding an input for filebeat and a module for metricbeat. Contains the required clients and code to use Cloud Foundry loggregator API to collect logs and metrics.

Worry is in the size increase of the binary for the included Cloud Foundry dependencies. Once the filebeat input is enabled in a later PR the size increase is only 3M. Increases from 119M to 122M.

Why is it important?

To support Cloud Foundry.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

* Add cloudfoundry common client into x-pack/common.

* Run mage fmt.

* Add support for tlscommon.Config, removing the uaago depedency as it didn't expose overriding the TLSConfig. Add comment for location of documentation for event types.

* Use common.Cache with addition of not updated expiration on get, instead of the kubernetes ttl cache. Fix other suggestions.

* Fix cache_test and new test for not updated access time.

* Handle error sooner in getAuthTokenWithExpiresIn.

(cherry picked from commit f4c71b4)
@blakerouse blakerouse merged commit d0aef34 into elastic:7.x Feb 26, 2020
@blakerouse blakerouse deleted the backport_16527_7.x branch May 6, 2020 13:47
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