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

fleet: use header with main configuration settings. #8102

Merged
merged 7 commits into from Dec 11, 2023

Conversation

pwhelan
Copy link
Contributor

@pwhelan pwhelan commented Oct 27, 2023

Summary

Fleets save the information for connecting to the fleet into the temporary fleet configuration file. This pull request uses a header.conf file that is then included by the configuration files. This file gets overwritten on each invocation.

This has the advantage of being able to update the base configuration settings, and also allows adding labels with add_label, etc...


Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.


…guration versions.

Signed-off-by: Phillip Whelan <phil@calyptia.com>
Signed-off-by: Phillip Whelan <phil@calyptia.com>
Download fleet files to a sub-directory with the timestamp of the relevant
configuration and allow it to be loaded by changing to that directory
when fluent-bit is reloaded.

  * Recurse through fleet files and download each one.
  * Change to the fleet files directory on reload so they can be referred
    to from the main fleet configuration file.
  * Delete old fleet file directories when the configuration is deleted.

Signed-off-by: Phillip Whelan <phil@calyptia.com>
Signed-off-by: Phillip Whelan <phil@calyptia.com>
Signed-off-by: Phillip Whelan <phil@calyptia.com>
Signed-off-by: Phillip Whelan <phil@calyptia.com>
…ration.

Use a header.conf file that is refreshed on each invocation of fluent-bit
to track the main configuration for the fleet agent. This file is then
included by the downloade fleet configuration files.

Signed-off-by: Phillip Whelan <phil@calyptia.com>
@edsiper edsiper deleted the pwhelan-fleet-header branch December 11, 2023 14: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.

None yet

2 participants