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

in_calyptia_fleet: support multiple files for configurations. #8092

Merged
merged 20 commits into from
Nov 30, 2023

Commits on Nov 7, 2023

  1. in_calyptia_fleet: add new helper functions for obtaining results fro…

    …m json.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    f7311cb View commit details
    Browse the repository at this point in the history
  2. in_calyptia_fleet: add functions to better handle the different confi…

    …guration versions.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    83f15f0 View commit details
    Browse the repository at this point in the history
  3. fleet: fix return value handling for fwrite.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    e8eea97 View commit details
    Browse the repository at this point in the history
  4. fleet: correctly generate the new configuration file name.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    b067a85 View commit details
    Browse the repository at this point in the history
  5. fleet: symlink the timestamped file.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    a6da4a8 View commit details
    Browse the repository at this point in the history
  6. fleet: delete old configuration files during commit.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    0049222 View commit details
    Browse the repository at this point in the history
  7. fleet: remove white space.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    291cee0 View commit details
    Browse the repository at this point in the history
  8. in_calyptia_fleet: generate_base_fleet_directory now allocates the fl…

    …b_sds_t for the caller.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    3cb8302 View commit details
    Browse the repository at this point in the history
  9. in_calyptia_fleet: download and load fleet files.

    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>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    daf43f8 View commit details
    Browse the repository at this point in the history
  10. in_calyptia_fleet: improve internal API used for handling configurati…

    …on file paths.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    6ad1ef6 View commit details
    Browse the repository at this point in the history
  11. in_calyptia_fleet: improve return value and parameter checking.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    2a02f63 View commit details
    Browse the repository at this point in the history
  12. in_calyptia_fleet: improve config_commit/add/rollback.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    2e835c9 View commit details
    Browse the repository at this point in the history
  13. in_calyptia_fleet: finish read_glob for files on windows.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    8a0fac6 View commit details
    Browse the repository at this point in the history
  14. in_calyptia_fleet: fix memory leak from configuration file name.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    e5e293a View commit details
    Browse the repository at this point in the history
  15. in_calyptia_fleet: remove readklink for win32.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    ce2c2a7 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. in_calyptia_fleet: fix use-after-free when reloading fleet configurat…

    …ion on windows.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 13, 2023
    Configuration menu
    Copy the full SHA
    b6c0786 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2023

  1. in_calyptia_fleet: remove config from flb_in_calyptia_fleet_config.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    2a2aa52 View commit details
    Browse the repository at this point in the history
  2. in_calyptia_fleet: commit to new configuration without checking if th…

    …e 'new' symlink exists.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    471d7e7 View commit details
    Browse the repository at this point in the history
  3. in_calyptia_fleet: remove configuration file directories for fleets w…

    …ithout files.
    
    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 14, 2023
    Configuration menu
    Copy the full SHA
    7d2097d View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2023

  1. in_calyptia_fleet: preserve machine_id across reloads.

    Signed-off-by: Phillip Whelan <phil@calyptia.com>
    pwhelan committed Nov 23, 2023
    Configuration menu
    Copy the full SHA
    afbb196 View commit details
    Browse the repository at this point in the history