Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add: nested conditional for wsproxy
  • Loading branch information
ericpaulsen committed Jul 18, 2023
commit e4dddde91122a99c35ecff96a48ead12f6969dc2
8 changes: 6 additions & 2 deletions helm/templates/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ spec:
command:
{{- toYaml .Values.coder.command | nindent 12 }}
args:
{{- if .Values.coder.workspaceProxy }}
{{- if .Values.coder.commandArgs }}
{{- toYaml .Values.coder.commandArgs | nindent 12 }}
{{- else }}
{{ if .Values.coder.workspaceProxy }}
- wsproxy
{{- end }}
- server
{{- end }}
{{- toYaml .Values.coder.commandArgs | nindent 12 }}
resources:
{{- toYaml .Values.coder.resources | nindent 12 }}
lifecycle:
Expand Down
2 changes: 1 addition & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ coder:
# coder.command -- The command to use when running the Coder container. Used
# for customizing the location of the `coder` binary in your image.
command:
- /opt/coder server
- /opt/coder

# coder.commandArgs -- Set arguments for the entrypoint command of the Coder pod.
commandArgs: []
Expand Down