-
Notifications
You must be signed in to change notification settings - Fork 62
Allow gunicorn log format to be customized #1567
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
base: main
Are you sure you want to change the base?
Allow gunicorn log format to be customized #1567
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: myacksmith The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @myacksmith. Thanks for your PR. I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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-sigs/prow repository. |
cc92715 to
c9f7c64
Compare
|
@myacksmith Please run |
|
@balasankarc: changing LGTM is restricted to collaborators DetailsIn response to this: Instructions 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-sigs/prow repository. |
3935cdf to
023dc5b
Compare
* Pass gunicorn_access_logformat as env var and use in container args * Add gunicorn_access_logformat field to Api and Content specs * Add changelog * Update controller_test.go with new env vars and args * Run `make manifests` and `make bundle` to update CRDs closes pulp#1564
023dc5b to
ddfa162
Compare
|
/ok-to-test |
|
Hi! 👋 Quick note on the CI failures. Unit tests pass locally (I know, I know... "works on my machine" 🙈) : The component and Helm tests appear to be failing due to infrastructure issues: Kustomize download failing: Helm tests - RBAC role not found: I'm not familiar enough with the CI setup to know if this is a known/intermittent issue or something new. If there's something I should look into on my end, please let me know! Thanks for your time reviewing this. |
Summary
Adds a new CRD field
gunicorn_access_logformatto customize gunicorn's access log format for api and content pods.Closes #1564
Changes
pulp_types.go
GunicornAccessLogformatfield toApistructGunicornAccessLogformatfield toContentstructdeployment.go
setEnvVars(): SetPULP_GUNICORN_ACCESS_LOGFORMATenv var with default value if field is emptypulpcoreApiContainerArgs(): Remove hardcoded--access-logformatfrom gunicorn ENTRYPOINT array, add--access-logformat "${PULP_GUNICORN_ACCESS_LOGFORMAT}"to exec commandpulpcoreContentContainerArgs(): Add--access-logformat "${PULP_GUNICORN_ACCESS_LOGFORMAT}"to exec commandcontroller_test.go
PULP_GUNICORN_ACCESS_LOGFORMATtoenvVarsApiandenvVarsContentapiContainersand content container Args to match new shell script behaviorDefault format:
This preserves existing behavior when the field is not specified - the default includes the correlation-id header from django_guid.
Usage