Skip to content

feat: add available_actions to service-spec templates - #208

Merged
sebastiancorrea81 merged 11 commits into
betafrom
feat/scope-definition-available-actions
Aug 4, 2026
Merged

feat: add available_actions to service-spec templates#208
sebastiancorrea81 merged 11 commits into
betafrom
feat/scope-definition-available-actions

Conversation

@sebastiancorrea81

Copy link
Copy Markdown
Contributor

Summary

  • Adds a top-level available_actions array to each scope type's service-spec.json.tpl (k8s, azure, azure-aro, scheduled_task), listing exactly the action names that have a template in that scope's specs/actions/ directory.
  • Prepares the ground for tofu-modules/nullplatform/scope_definition to read this list from the spec by default instead of from a hardcoded variable default (follow-up PR in tofu-modules).
  • No behavior change for existing consumers: this only adds a new field to the spec JSON that nothing reads yet.

Test plan

  • Each template renders as valid JSON via gomplate | jq
  • Each template's available_actions matches its specs/actions/ directory exactly (verified with diff)

fedemaleh and others added 6 commits June 8, 2026 21:05
Add scheduled task nodeSelector
Move Unreleased entries to the 1.13.0 section dated 2026-07-10:
- AWS credentials via assume role
- Auto-create ALBs on scope create
- Fix IAM role creation race condition on concurrent scope creation
- nodeSelector support for scheduled task scopes
…o the API

The service-spec.json.tpl files now include an available_actions field that is
not yet handled by the API. Strip this field from the rendered JSON before
POSTing to prevent API validation failures if the API rejects unknown properties.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…tself

The spec and the template disagreed on this one name, and the mismatch is what
produced the jq parse error the module hit: the wrong name resolved to a 404 whose
body reached the parser as "404: Not Found".

The first alignment went the other way, renaming the template to the plural to
match the module's old default. The action deletes one instance, so the singular
is the right name; the plural only existed because the default said so.

Confirmed every entry in available_actions has its template.
agustincelentano and others added 3 commits August 3, 2026 13:50
The rename to the plural also changed the displayed name. Back to what main has,
so the action reads the same as before in the UI.
…-available-actions

# Conflicts:
#	CHANGELOG.md
…actions' into feat/scope-definition-available-actions

# Conflicts:
#	k8s/specs/actions/kill-instance.json.tpl
@sebastiancorrea81
sebastiancorrea81 merged commit 7145346 into beta Aug 4, 2026
3 checks passed
@sebastiancorrea81
sebastiancorrea81 deleted the feat/scope-definition-available-actions branch August 4, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants