Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: create workspaces and templates for multiple orgs#13866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 11 commits intomainfromstevenmasley/create_workspace
Jul 12, 2024

Conversation

@Emyrk
Copy link
Member

@EmyrkEmyrk commentedJul 10, 2024
edited
Loading

What this does

This allows creating a workspace using a template in an organization other than the default. If only 1 organization exists, then nothing changes.

If you select a template that has a unique name, thencoder create can infer the organization to create the workspace in. If the template name is not unique across organizations, then using--org is required.

Changes

Create lists templates

Screenshot from 2024-07-11 12-25-09

template create (deprecated command, but still exists)

Prints out the coder cli command to use the template without any ambiguity. If another template of the same name exists in another org,--org=<org_name> must be specified.

The rabbitt3 template has been created atJul 10 10:47:24! Developers can provision a workspacewith this template using:   coder create --template="<template_name>" --org="<org_name>" [workspace name]

coder create with ambiguous organization

If a template name is not unique across multiple organizations,coder create requires a--rg=<org_name> flag to disambiguate.

$ coder create --template="docker" ambigiousworkspaceEncountered an error running"coder create", see"coder create --help"for more informationerror: multiple templates found with the name"docker", use`--org=<organization_name>` to specify which template by that name to use. Organizations available: first-organization, rabbit

coder create with a wrong organization selected

If you try to use a template with--org set to the wrong organization, an error is thrown.

$ coder create --template="rabbitt" --org="first-organization" ambigiousworkspace2Encountered an error running"coder create", see"coder create --help"for more informationerror: template isin organization"rabbit", but'--org="first-organization"' was specified. Use'--org="rabbit"' to use this template

@EmyrkEmyrk changed the titlechore: creating workspaces and templates to work with orgschore: create workspaces and templates for multi orgsJul 10, 2024
@EmyrkEmyrk changed the titlechore: create workspaces and templates for multi orgschore: create workspaces and templates for multiple orgsJul 10, 2024
@EmyrkEmyrkforce-pushed thestevenmasley/create_workspace branch 2 times, most recently from4160118 tod59cb83CompareJuly 11, 2024 14:18
@EmyrkEmyrkforce-pushed thestevenmasley/create_workspace branch from401166d toda4d8eeCompareJuly 11, 2024 16:32
@EmyrkEmyrk marked this pull request as ready for reviewJuly 11, 2024 16:53
@EmyrkEmyrk requested a review fromf0sselJuly 12, 2024 13:16
Copy link
Contributor

@f0sself0ssel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think this is all good for now, but before experimental release I'd like to nail down how much we need to handle different org cases or if we just make everything take a flag explicitly to simplify things. Something we should probably loop in with product.

@Emyrk
Copy link
MemberAuthor

I think this is all good for now, but before experimental release I'd like to nail down how much we need to handle different org cases or if we just make everything take a flag explicitly to simplify things. Something we should probably loop in with product.

The downside of the explicit flag is deployments with only 1 org 😢

@EmyrkEmyrk merged commit9cbe2b2 intomainJul 12, 2024
@EmyrkEmyrk deleted the stevenmasley/create_workspace branchJuly 12, 2024 20:47
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 12, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Emyrk@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp