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

Inputs that are conditionally skipped #289

Open
drevell opened this issue Nov 17, 2023 · 1 comment
Open

Inputs that are conditionally skipped #289

drevell opened this issue Nov 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@drevell
Copy link
Contributor

drevell commented Nov 17, 2023

TL;DR

Sometimes, one input is unnecessary, depending on the value of another input. For example, you might have two inputs use_postgres, and postgres_config_file; if use_postgres is false then you don't care about postgres_config_file.

One way this could look: we could add a CEL expression skip_if to each input. For example:

inputs:
  - name: use_postgres
  - name: postgres_config_file
    default: 'postgres.conf'
    skip_if: '!bool(use_postgres)'

cc @gjonathanhong

@drevell drevell added the enhancement New feature or request label Nov 17, 2023
@tyroneclay
Copy link

Unable to prioritize until recently. WIP. Code complete end of next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants