Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Add auth property to coder_agent_script #5

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

Merged
merged 1 commit into from
Mar 25, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This enables explicit definition of auth type, so the agent
doesn't misinterpret the running environment.

This also adds "username" and "name" properties to "coder_workspace"
to allow for pretty resource naming inside a cloud.

This enables explicit definition of auth type, so the agent
doesn't misinterpret the running environment.

This also adds "username" and "name" properties to "coder_workspace"
to allow for pretty resource naming inside a cloud.
@kylecarbs kylecarbs requested a review from bpmct March 25, 2022 15:30
@kylecarbs kylecarbs self-assigned this Mar 25, 2022
@kylecarbs kylecarbs enabled auto-merge (squash) March 25, 2022 15:34
Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

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

left one comment on naming. NB

@@ -65,6 +65,8 @@ func New() *schema.Provider {
transition = "start"
}
rd.Set("transition", transition)
rd.Set("username", os.Getenv("CODER_WORKSPACE_USERNAME"))
Copy link
Member

@bpmct bpmct Mar 25, 2022

Choose a reason for hiding this comment

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

thoughts on owner and CODER_WORKSPACE_OWNER instead? to me, username sounds like a property unique to the workspace.

@kylecarbs kylecarbs merged commit ca6b30b into main Mar 25, 2022
@kylecarbs kylecarbs deleted the authtype branch March 25, 2022 15:43
DanielleMaywood pushed a commit that referenced this pull request Sep 5, 2024
This enables explicit definition of auth type, so the agent
doesn't misinterpret the running environment.

This also adds "username" and "name" properties to "coder_workspace"
to allow for pretty resource naming inside a cloud.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants