Feature Request: expose pack config to rules/triggers
Open
Nobody has claimed this yet.
enhancement
help wanted
- Dominant language
- Python
- Stars
- 6.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
Today, I wanted to add an IntervalTimer trigger, and I wanted to have the delta set in configuration.
I think it would be advantageous to allow end-users of my pack to set the interval delta (and unit) in configuration instead of having to edit the pack's yaml file.
trigger:
type: "core.st2.IntervalTimer"
parameters:
unit: "{{config_context.rule1_unit}}"
delta: {{config_context.rule1_delta}
related to #3183
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the related issue #3183 and the pack configuration, rule, and trigger handling around the shown IntervalTimer example. Trace how config_context is expected to reach rule and trigger parameters. Done means pack users can configure the interval delta and unit without editing the pack's YAML file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100