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

feat: add support forcoder_env#11102

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
mafredri merged 2 commits intomainfrommafredri/feat-coder-env
Dec 11, 2023
Merged

feat: add support forcoder_env#11102

mafredri merged 2 commits intomainfrommafredri/feat-coder-env
Dec 11, 2023

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedDec 8, 2023
edited
Loading

This PR adds support forcoder_env (coder/terraform-provider-coder#174).

The terraform/proto structure is conducive towards allowing additional logic in the future, as discussed in#10166.

For now, we simply piggy-back on theworkspace_agents.environment_variables column with the additional envs. It felt premature to add a separate table and logic in the agent for this, however,a downside is that conflicts are silently ignored (we simply don't set the env if it's already set on the agent resource or by another module).

Ideas for non-silent discard are welcome. And if preferred, I can create theworkspace_agent_env table with accompanying agent logic to process the extra envs. The agent can then log the conflict.

Fixes#10166

@mafredrimafredriforce-pushed themafredri/feat-coder-env branch 2 times, most recently fromd18e00c tob63880bCompareDecember 8, 2023 14:41
@mafredrimafredriforce-pushed themafredri/feat-coder-env branch fromb63880b to04ac5ccCompareDecember 8, 2023 15:14
@mafredrimafredriforce-pushed themafredri/feat-coder-env branch from0fc68f9 to983cad8CompareDecember 8, 2023 15:46
@mafredrimafredri marked this pull request as ready for reviewDecember 8, 2023 15:49
Copy link
Member

@johnstcnjohnstcn 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 behaviour is fine.
LGTM

There's definitely a set of environment variables we don't want folks to be able to override, lest they brick their workspace.
So this behaviour of not overriding is fine for now.

Perhaps later we could have a denylist of environment variables, but that's not for now.

matifali and mafredri reacted with thumbs up emoji
@mafredrimafredri merged commit3e5d292 intomainDec 11, 2023
@mafredrimafredri deleted the mafredri/feat-coder-env branchDecember 11, 2023 14:10
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 11, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@matifalimatifalimatifali left review comments

@johnstcnjohnstcnjohnstcn approved these changes

@mtojekmtojekAwaiting requested review from mtojek

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Addcoder_env so that modules can set environment variables
3 participants
@mafredri@johnstcn@matifali

[8]ページ先頭

©2009-2025 Movatter.jp