Repository navigation
Allow setting env vars on concourse web - #5641
mattjmcnaughton wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mattjmcnaughton Assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @mattjmcnaughton. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/assign @william-tran Thanks! |
timstoop
left a comment
There was a problem hiding this comment.
Please update the README as well.
There was a problem hiding this comment.
As this is a new feature, please bump the minor version of the Chart.
|
Can do for both :) Thanks @timstoop |
Previously it was only possible to set additional env vars on the `worker` pod. Its conceivable that a user would also want to set additional env vars on the `web` pod. I tested this by uncommenting the added configuration in `values.yaml`, running `helm install .` and verifying `kubectl exec -t WEB_POD_NAME env | grep CONCOURSE_LOG_LEVEL` returned a result.
|
PR updated and ready for another look whenever y'all get a chance :) @timstoop @william-tran |
| | `web.nameOverride` | Override the Concourse Web components name | `nil` | | ||
| | `web.replicas` | Number of Concourse Web replicas | `1` | | ||
| | `web.resources` | Concourse Web resource requests and limits | `{requests: {cpu: "100m", memory: "128Mi"}}` | | ||
| | `web.env` | Configure additional environment variables for the web container(s) | `[]` | |
There was a problem hiding this comment.
Best practises are moving towards using extraEnv for this, to make it clear that they are added in addition to the already provided ones (if any).
There was a problem hiding this comment.
Great to know! Updating now :)
There was a problem hiding this comment.
Hmm, actually, as I think about this more, my concern is that workers.env already exists. So I'm worried about it being confusing that for worker pods you specify env, but for web pods you specify extraEnv.
So I guess the options are:
- Use
web.extraEnvandworker.envand just accept the discrepancy might be confusing. - Use
web.extraEnvand switchworker.envtoworker.extraEnv. My concern with that is that it would be a breaking API change, correct? I'm not really sure what best practice for that is in the helm chart community. - Use
web.envandworker.envfor consistency.
Let me know which option you think is best @timstoop !
There was a problem hiding this comment.
For me, option 2 looks best. You can signal a breaking change (although I think it's currently still ascetically only, helm users don't get a warning or anything) by bumping the major of the version. I see no reason not to do that, honestly. @frodenas @william-tran As chart owners, what do you think?
There was a problem hiding this comment.
Cool, that sounds good to me! I'll wait for signoff from @frodenas or @william-tran before updating the pr :)
|
@mattjmcnaughton if we go with option 2, I'd like to force users that were using worker.env to migrate those values to extraEnv through some template logic. Or we can just merge worker.env with worker.extraEnv and maintain backwards compatibility |
|
Superseded by #6441 |
|
/close |
What this PR does / why we need it:
Previously it was only possible to set additional env vars on the
workerpod. Its conceivable that a user would also want to setadditional env vars on the
webpod.I tested this by uncommenting the added configuration in
values.yaml,running
helm install .and verifyingkubectl exec -t WEB_POD_NAME env | grep CONCOURSE_LOG_LEVELreturned a result.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #5597