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

Add support to disable db while still setting the path #10198

Open
stevehipwell opened this issue Apr 10, 2025 · 1 comment
Open

Add support to disable db while still setting the path #10198

stevehipwell opened this issue Apr 10, 2025 · 1 comment

Comments

@stevehipwell
Copy link

Is your feature request related to a problem? Please describe.

I want to be able to only enable the DB functionality when I've configured writable storage on a host, as it currently stands I need to write custom logic into the Helm chart to remove the db config key is the host storage isn't writable.

Describe the solution you'd like

The db and related keys aren't currently YAML native so ideally a nested YAML format can be adopted along the lines of

env:
  STORAGE_ENABLED: "true"

pipeline:
  inputs:
    - name: tail   
      path: /var/log/containers/*.log
      db:
        enabled: ${STORAGE_ENABLED}
        path: /fluent-bit/data/tail.db

Describe alternatives you've considered

I remove the key in the Helm chart.

Additional context

The whole config pattern needs to be aligned to idiomatic YAML and at the same time the config should allow keys to be present and use guard flags (like enabled above) to control conditional logic.

@stevehipwell
Copy link
Author

CC @patrick-stephens

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

No branches or pull requests

1 participant