Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

sg/msp: generate github action subscription matrix dynamically#63526

Merged
jac merged 3 commits into
mainfrom
jac/sg-msp-subscriptions
Jun 27, 2024
Merged

sg/msp: generate github action subscription matrix dynamically#63526
jac merged 3 commits into
mainfrom
jac/sg-msp-subscriptions

Conversation

@jac

@jac jac commented Jun 27, 2024

Copy link
Copy Markdown
Member

Currently the matrix is hardcoded in the msp repo.
Service operators can forget to add or remove their service from the list.

GitHub supports dynamically generating the matrix from a previous jobs output (example)
This PR adds an sg msp subscription-matrix command which will generate the matrix we need

Part of CORE-202

Test plan

Output

{"service":[{"id":"cloud-ops","env":"prod","category":"internal"},{"id":"gatekeeper","env":"prod","category":"internal"},{"id":"linearhooks","env":"prod","category":"internal"}]}

@jac jac requested a review from a team June 27, 2024 17:53
@cla-bot cla-bot Bot added the cla-signed label Jun 27, 2024

@bobheadxi bobheadxi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very slick!

Comment thread dev/sg/msp/sg_msp.go Outdated
@jac jac merged commit 117fe09 into main Jun 27, 2024
@jac jac deleted the jac/sg-msp-subscriptions branch June 27, 2024 18:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants