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

Support Regex in Promotion Policies #3535

Open
3 tasks done
BenHesketh21 opened this issue Feb 21, 2025 · 0 comments
Open
3 tasks done

Support Regex in Promotion Policies #3535

BenHesketh21 opened this issue Feb 21, 2025 · 0 comments

Comments

@BenHesketh21
Copy link
Contributor

Checklist

  • I've searched the issue queue to verify this is not a duplicate feature request.
  • I've pasted the output of kargo version, if applicable.
  • I've pasted logs, if applicable.

Proposed Feature

It would be nice if promotion policies could accept regex for stages so that you can enable auto promotion for a group of stages with a similar name.

Motivation

We are trying to use Kargo for PR Preview environments and wanting to use auto promotion for those. But with the way promotion policies work. I would have to add a new policy every time a PR is created and remove it every time the PR was closed. I could put each PR in it's own project but that seems like it would quickly bloat the projects list page.

Suggested Implementation

I would just make the stage section of promotion policies accept regex, or have a similar option as credentials do and have a stageIsRegex bool option. And apply the policy to all stages in that project that fit the description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant