Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

chore: provide resource pool id and namespace in env create #258

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Mar 5, 2021

We can expose these values via a flag later, but for now using the default pool is OK.

@cmoog cmoog requested a review from Emyrk March 5, 2021 18:07
Comment on lines +63 to +74
func DefaultWorkspaceProvider(ctx context.Context, c coder.Client) (*coder.WorkspaceProvider, error) {
provider, err := c.WorkspaceProviders(ctx)
if err != nil {
return nil, err
}
for _, p := range provider {
if p.Local {
return &p, nil
}
}
return nil, coder.ErrNotFound
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cc @f0ssel

Copy link
Contributor

@f0ssel f0ssel left a comment

Choose a reason for hiding this comment

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

looks good for now, when we'll do the local -> default migration we can also consider whether we can rip out the Local bool altogether as well, but that's down the road.

@cmoog cmoog merged commit 46775b2 into master Mar 5, 2021
@cmoog cmoog deleted the cmoog/pass-rp branch March 5, 2021 18:17
Copy link
Member

@Emyrk Emyrk left a comment

Choose a reason for hiding this comment

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

I know it's already merged, but 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants