Wrap the variable, application-delete and isolation-create verbs #11
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/terraform-variable-wrappers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the
/cliwrappers the new Terraform provider needs, keeping onedefinition of each verb on the shared contract (the reason this module exists).
What
Variables/SetVariables/DeleteVariable— the applicationconfiguration layer (
GET/PUT/DELETE /cli/applications/{slug}/variables).Values are never on the wire, so
Variablecarries metadata only.DeleteApplication—DELETE /cli/applications/{slug}, with?forcefor astill-bound managed service. Paired with the platform's new endpoint (separate PR).
CreateApplicationWithIsolation— a superset ofCreateApplicationnamingthe isolation level. The 3-arg form delegates and omits the key when unset, so
the platform still applies its default and the agent's one caller is untouched.
Verification
go test ./...green;hack/lint.shreports 0 issues.Adds the wrappers a declarative consumer (the new Terraform provider) needs and the CLI did not yet require, keeping one definition of each verb on the contract: - Variables/SetVariables/DeleteVariable — the application configuration layer (GET/PUT/DELETE /cli/applications/{slug}/variables). Values are never on the wire, so Variable carries metadata only. - DeleteApplication — DELETE /cli/applications/{slug}, with ?force for a still- bound managed service. Paired with the platform's new endpoint. - CreateApplicationWithIsolation — a superset of CreateApplication that names the isolation level; the 3-arg form delegates to it and omits the key when unset, so the platform still reads its default and the agent's caller is untouched. Stdlib only, matching the module's no-dependency rule. Coverage floor 88.8 -> 90.7.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.