Allow partial wildcard matching on autoattaching policies

The auto-attachment feature (https://docs.spacelift.io/concepts/configuration/context#auto-attachments) currently supports using a “*” to match all projects. It would be nice if it could be used to match a partial subset of projects.

For example, if I have projects with labels of:

  1. team/X/project_1

  2. team/X/project_2

  3. team/Y/project_1

I would like to be able to set “autoattach:team/X/*” and have it autoattach to only projects with a label that starts with “team/X/”.

Workaround
Yes, manually specifying the entire label for each project I want to autoattach.
Problem
-

Please authenticate to join the conversation.

Upvoters
Status

⬆️ Gathering votes

Board

💡 Feature Requests

Tags

Contexts

Date

7 months ago

Subscribe to post

Get notified by email when there are changes.