abcxyz / abcxyz/abc

Inputs that are conditionally skipped

オープン
#289 コメント 1 件 リアクション 0 件 担当者 1 名 @tyroneclay が担当を希望しています GitHub で見る
enhancement
主要言語
Go
スター
16
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。