Skip to content

Commit b88e11f

Browse files
authored
Add env service account env var (#43)
* Add env SA env var to envproxy * fixup! Add env SA env var to envproxy * fixup! Add env SA env var to envproxy
1 parent 0b2c91b commit b88e11f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

templates/cemanager.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ spec:
120120
secretKeyRef:
121121
name: built-in-envproxy-token
122122
key: token
123-
# ENVIRONMENT_SERVICE_ACCOUNT is the service account to assign
124-
# to all user environments. It's primarily used to ensure
125-
# environments abide a pod security policy if one is set.
126-
- name: ENVIRONMENT_SERVICE_ACCOUNT
127-
value: "environments"
128123
- name: STORAGE_CLASS
129124
value: {{ .Values.storageClassName | quote }}
130125
{{- include "coder.environments.configMapEnv" . | indent 12 }}

templates/envproxy.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ spec:
106106
value: {{ .Values.storageClassName | quote }}
107107
- name: DEVURL_HOST
108108
value: {{ .Values.devurls.host | quote }}
109+
- name: ENVIRONMENT_SA_NAME
110+
value: "environments"
109111
command:
110112
- /entrypoint.sh
111113
- envproxy

0 commit comments

Comments
 (0)