feat: add workspace settings commands for studios workspace settings configurability#633
Open
georgi-seqera wants to merge 1 commit into
Open
feat: add workspace settings commands for studios workspace settings configurability#633georgi-seqera wants to merge 1 commit into
georgi-seqera wants to merge 1 commit into
Conversation
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.
Summary
Adds a new command tree under
workspacesfor inspecting and configuring a workspace's Studios settings.Four independent attributes are exposed:
containerRepositorynameStrategy(none | tagPrefix | imageSuffix)lifespanHoursprivateStudioByDefault.updateis a partial / merge-from-current operation — only the options you pass are changed, the rest are preserved.workspaces settings studios viewShow the current Studios settings for a workspace, by ID or by
Org/Workspacename.workspaces settings studios updateUpdate one, several, or all attributes. Untouched attributes are left as-is.
Options
--container-repository <repo>--reset-container-repositorynull)--name-strategy <none|tagPrefix|imageSuffix>--reset-name-strategynull)--lifespan-hours <int>0= unlimited)--[no-]private-by-defaultNotes:
--reset-*flags send explicitnulland are mutually exclusive with their set counterpart.--name-strategy noneis a real value, distinct from--reset-name-strategy.Regression testing — full command examples
Prerequisites
The studios settings commands identify the workspace with
-i/--id(numeric workspace ID) or-n/--name(OrganizationName/WorkspaceName) — there is no-wflag here.1. View settings
2. Update a single attribute
3. Name strategy (enum)
Accepts
none,tagPrefix, orimageSuffix(case-insensitive; the enum constant namesNONE,TAG_PREFIX,IMAGE_SUFFIXare also accepted).4. Private-by-default (negatable boolean)
5. Update multiple attributes at once
6. Reset (clear) nullable attributes
--reset-*flags send an explicitnull— distinct from--name-strategy none, which sets the strategy to the real valuenone.7. Validation / error cases
8. By-name equivalents
Every command above also works with
-n "$WORKSPACE_NAME"instead of-i "$WORKSPACE_ID".9. Help text