-
Notifications
You must be signed in to change notification settings - Fork 44
feat: dynamic username template #261
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new Terraform template for Coder that creates Kubernetes workspaces with dynamic usernames, where the Linux user inside the container matches the Coder username. This addresses a common customer requirement for workspace identity management.
Key changes:
- New Kubernetes deployment template with dynamic username support
- User creation logic that maps Coder usernames to Linux UIDs
- Documentation explaining the template's purpose and usage
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 5 comments.
File | Description |
---|---|
registry/ericpaulsen/templates/k8s-username.tf | Main template file implementing Kubernetes deployment with dynamic username creation |
registry/ericpaulsen/templates/README.md | Template documentation explaining usage and prerequisites |
registry/ericpaulsen/README.md | Author profile information for the template registry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ericpaulsen. A few suggestions, and we are good to merge.
@matifali good for a final review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Eric.
@ericpaulsen you forgot to create a subfolder for your k8s-username template. can you move |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
done @phorcys420 thank you |
Description
this PR adds a new template that creates & runs Coder workspaces on K8s with the user's Coder
username
as the Linux UID. a commonly requested use-case by customers.Type of Change
Module Information
Path:
registry/ericpaulsen/templates/k8s-pod-username.tf
Testing & Validation