Repository navigation
feat: read the workspace restrictApplyToConfiguredBranch setting - #101
Open
jakegroves wants to merge 1 commit into
Open
jakegroves wants to merge 1 commit into
jakegroves wants to merge 1 commit into
Conversation
Terrakube 2.34.0 adds an opt-in workspace setting that limits apply and destroy to the workspace branch. Add it to WorkspaceAttributes so the client reads it. A Terrakube that does not send it reads as false, which is its behaviour. Refs terrakube-io/terrakube#3816
|
Macbet
reviewed
Nov 17, 2026
Macbet
left a comment
There was a problem hiding this comment.
Checked the change end to end: the new restrictApplyToConfiguredBranch field against the API's Workspace entity (same name, non-null boolean, readable), whether WorkspaceAttributes is ever serialized into a request (it is not, so the primitive default cannot be sent), and the WireMock tests against the production Feign/Jackson decoder setup. No blocking issues found.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changed and why?
Terrakube 2.34.0 adds an opt-in workspace setting,
restrictApplyToConfiguredBranch, that only allows apply and destroy from the workspace branch (terrakube-io/terrakube#3816). This adds it toWorkspaceAttributesso the client reads it.A Terrakube that does not send it reads as false, which is its behaviour. The client only reads workspaces, so there is nothing to send.
Testing