Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion helm/coder/templates/_coder.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ args:
{{- end }}
- server
{{- end }}
{{- if .Values.coder.envFrom }}
envFrom:
{{- with .Values.coder.envFrom }}
{{ toYaml . }}
{{- end }}
{{- end }}
env:
- name: CODER_HTTP_ADDRESS
value: "0.0.0.0:8080"
Expand All @@ -50,7 +56,7 @@ env:
{{- $hasAccessURL = true }}
{{- end }}
{{- end }}
{{- if not $hasAccessURL }}
{{- if and (not $hasAccessURL) .Values.coder.envUseClusterAccessURL }}
- name: CODER_ACCESS_URL
value: {{ include "coder.defaultAccessURL" . | quote }}
{{- end }}
Expand Down
17 changes: 14 additions & 3 deletions helm/coder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,22 @@ coder:
# - CODER_DERP_SERVER_RELAY_URL
#
# We will additionally set CODER_ACCESS_URL if unset to the cluster service
# URL.
# URL, unless coder.envUseClusterAccessURL is set to false.
env: []
# - name: "CODER_ACCESS_URL"
# value: "https://coder.example.com"

# coder.envFrom -- Secrets to use for Coder's environment variables. If you want
# one environment variable read from a secret, then use coder.env valueFrom. See
# the K8s docs here: https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#define-container-environment-variables-using-secret-data
# If setting CODER_ACCESS_URL in coder.envFrom, then you must set coder.envUseClusterAccessURL
# to false.
envFrom: []

# coder.envUseClusterAccessURL -- Set this to false if defining CODER_ACCESS_URL
# in coder.envFrom
envUseClusterAccessURL: true

# coder.image -- The image to use for Coder.
image:
# coder.image.repo -- The repository of the image.
Expand All @@ -29,13 +40,13 @@ coder:
# if not set. If you're using the chart directly from git, the default
# app version will not work and you'll need to set this value. The helm
# chart helpfully fails quickly in this case.
tag: ""
tag: "v2.1.5"
# coder.image.pullPolicy -- The pull policy to use for the image. See:
# https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
pullPolicy: IfNotPresent
# coder.image.pullSecrets -- The secrets used for pulling the Coder image from
# a private registry.
pullSecrets: []
pullSecrets:
# - name: "pull-secret"

# coder.initContainers -- Init containers for the deployment. See:
Expand Down