Skip to content

feat(helm): add commandArgs for custom entrypoint #8567

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 19, 2023
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
Next Next commit
feat(helm): add args conditional for custom entrypoint
  • Loading branch information
ericpaulsen committed Jul 17, 2023
commit 9239c2d59d3d668cc4382cbf625341f176f604ea
2 changes: 2 additions & 0 deletions helm/templates/coder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ spec:
{{- if .Values.coder.workspaceProxy }}
- wsproxy
{{- end }}
{{- if .Values.coder.enableArgs }}
- server
{{- end }}
resources:
{{- toYaml .Values.coder.resources | nindent 12 }}
lifecycle:
Expand Down
5 changes: 5 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ coder:
command:
- /opt/coder

# coder.enableArgs -- Enables the `coder server` subcommand to be called as the
# entrypoint argument. Set this value to false if specifying a custom command above, e.g.
# /bin/sh -c echo "Hello World" /opt/coder server
enableArgs: true

# extraTemplates -- Array of extra objects to deploy with the release. Strings
# are evaluated as a template and can use template expansions and functions. All
# other objects are used as yaml.
Expand Down