Replies: 2 comments 4 replies
-
|
I believe git will take the |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
I ran into this same thing last year with code-server in Kubernetes. The key insight is that git will respect GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables when set. You can set these via code-server's extraVars configuration in your Kubernetes deployment. Here's how:
extraEnv:
- name: GIT_AUTHOR_NAME
value: "Your Name"
- name: GIT_AUTHOR_EMAIL
value: "your.email@example.com"
helm install code-server coder/code-server \
--set extraEnv[0].name=GIT_AUTHOR_NAME \
--set extraEnv[0].value="Your Name" \
--set extraEnv[1].name=GIT_AUTHOR_EMAIL \
--set extraEnv[1].value="your.email@example.com"This approach works because:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am running code-server in a Kubernetes cluster, and so its entirely possible that the pods hosting it might be recreated at any point. The git config is local and, to the best of my knowledge, not stored in the code-server config. Therefore, if the pod is recreated the git config will be destroyed and I'd have to re-enter it.
Am I missing something? I couldn't find anything in the docs about how to set the Env variables to recreate these configuration items on a rebuild.
Beta Was this translation helpful? Give feedback.
All reactions