From 487db9b43ca96fb2d948e2f9326f3a816d1a55f9 Mon Sep 17 00:00:00 2001 From: Agustin Celentano <12614595+agustincelentano@users.noreply.github.com> Date: Mon, 3 Aug 2026 11:46:05 -0300 Subject: [PATCH] feat: declare the scope's available actions in its spec The list of actions a scope offers lived in the scope_definition module as a hardcoded default, far from the scope that implements them. Declaring it here puts the list next to the action templates it names. The seven match the templates in specs/actions and the specifications currently registered for this scope. Requires the module to read the field: nullplatform/tofu-modules#458. --- static-files/specs/service-spec.json.tpl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/static-files/specs/service-spec.json.tpl b/static-files/specs/service-spec.json.tpl index 5e8f0a6..f3af458 100644 --- a/static-files/specs/service-spec.json.tpl +++ b/static-files/specs/service-spec.json.tpl @@ -1,4 +1,13 @@ { + "available_actions": [ + "create-scope", + "delete-scope", + "start-initial", + "start-blue-green", + "finalize-blue-green", + "rollback-deployment", + "delete-deployment" + ], "assignable_to": "any", "attributes": { "schema": {