Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 5 commits intomainfromhelm-args
Jul 19, 2023
Merged

Conversation

ericpaulsen
Copy link
Member

@ericpaulsenericpaulsen commentedJul 17, 2023
edited
Loading

this PR adds thecommandArgs value to support passing custom arguments into the Coder container.

one of our large customers needs this feature to pass in a custom PostgreSQL connection URL environment variable. they are looking to reference the database password from a volume mounted on the container. the below example meets this requirement:

coder:command:    -/bin/sh    --c    -CODER_PG_CONNECTION_URL=postgresql://coder:$(cat /mnt/postgres-pass/secret.json | jq -r .password)@coder-db.coder.svc.cluster.local:5432/coder /opt/coder servercommandArgs:[]

@deansheather
Copy link
Member

I would prefer we just provided a.Values.coder.commandArgs value (default[]) instead, and if it's set we wouldn't set any args on the command.

e.g.:

coder:command:/bin/shcommandArgs:    -'-c'    -'echo "hello world" && coder server'

Default to[] instead of[ 'server' ] because we change it betweenserver andwsproxy server in the templates.

bpmct reacted with thumbs up emoji

Copy link
Member

@deansheatherdeansheather left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Commented above

ammario reacted with thumbs up emoji
@ericpaulsen
Copy link
MemberAuthor

thanks@deansheather - how should we specifyserver in thecoder.yaml template?

@ammarioammario removed their request for reviewJuly 17, 2023 21:52
Copy link
Member

@deansheatherdeansheather left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Needs a test in the tests dir, you can add a test by adding it to the list in the_test.go file and adding a corresponding values file with the same name in the testdata dir. Then runmake --always-make update-golden-files to save the generated chart for your test. Double check the outputted file before committing to make sure it looks as you would expect

ericpaulsen reacted with thumbs up emoji
@ericpaulsenericpaulsen changed the titlefeat(helm): add args conditional for custom entrypointfeat(helm): add commandArgs for custom entrypointJul 18, 2023
@ericpaulsenericpaulsen requested a review frombpmctJuly 18, 2023 16:14
@deansheatherdeansheatherenabled auto-merge (squash)July 19, 2023 00:37
@deansheatherdeansheather merged commit164b816 intomainJul 19, 2023
@deansheatherdeansheather deleted the helm-args branchJuly 19, 2023 00:50
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 19, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@bpmctbpmctAwaiting requested review from bpmct

Assignees

@ericpaulsenericpaulsen

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ericpaulsen@deansheather@bpmct

[8]ページ先頭

©2009-2025 Movatter.jp