Skip to content

Only use the group's owning stage for entitlement lock on ASG page - #1974

Merged
mitchellngoodman merged 1 commit into
pinterest:masterfrom
jonatsouza:group-page-entitlements-owner-only
Oct 28, 2026
Merged

mitchellngoodman merged 1 commit into
pinterest:masterfrom
jonatsouza:group-page-entitlements-owner-only

Conversation

@jonatsouza

Copy link
Copy Markdown
Contributor

Summary

The ASG page (/groups/<group>/config/) greyed out its capacity fields if any stage deploying to the group was onboarded to entitlements, and linked "View Entitlement" to that stage.

Entitlements onboard a cluster by name (<env>-<stage>, which is also the group name), so only the stage owning the group should count. Other stages, such as agents installed on many groups, only deploy onto its hosts and don't control its capacity.

Example: granulate/agent-canary has no cluster of its own but deploys to model-farm-notification_gpu_canary_4e0d50 and many other groups. Because it is onboarded, all of those ASG pages were locked and linked to granulate's entitlement, even though model-farm-notification_gpu_canary_4e0d50 is not onboarded.

Change

In get_asg_config, pick the entitlement env only among stages whose clusterName matches the group name. This matches the stage capacity page, which uses the stage's own useEntitlements.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@jonatsouza
jonatsouza requested a review from a team as a code owner October 27, 2026 20:38
@github-actions github-actions Bot added the deploy-board Includes changes to deploy-board label Oct 27, 2026
@mitchellngoodman
mitchellngoodman merged commit 806ea10 into pinterest:master Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deploy-board Includes changes to deploy-board

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants