Skip to content

Commit

Permalink
chore(ci): set gunicorn log levels by env (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Feb 3, 2025
1 parent 210aaa6 commit 69787b0
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 356 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ jobs:
oc_token: ${{ secrets.OC_TOKEN }}
with:
environment: test
params: --set global.autoscaling=true --set rctool.pdb.enabled=true --set frontend.pdb.enabled=true


params: --set global.autoscaling=true --set rctool.pdb.enabled=true --set frontend.pdb.enabled=true --set frontend.gunicorn.logLevel=debug

zap_scan:
runs-on: ubuntu-24.04
Expand All @@ -52,6 +50,7 @@ jobs:
cmd_options: "-a"
issue_title: "ZAP: rctool"
target: https://${{ env.URL }}

promotions:
name: Promote Images
needs: [deploy-test, vars]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
oc_token: ${{ secrets.OC_TOKEN }}
with:
triggers: ('frontend/' 'charts/')
params: --set global.secrets.persist=false
params: --set global.secrets.persist=false --set frontend.gunicorn.logLevel=debug
oc_server: ${{ vars.OC_SERVER }}


Expand Down
2 changes: 2 additions & 0 deletions charts/app/templates/rctool/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
value: "8190"
- name: GUNICORN_TIMEOUT
value: "1800"
- name: GUNICORN_LOG_LEVEL
value: {{ .Values.frontend.gunicorn.logLevel }}
- name: CSRF_TRUSTED_ORIGINS
value: 'https://*.apps.silver.devops.gov.bc.ca,https://*.apps.silver.devops.gov.bc.ca,https://hydra.nrs.gov.bc.ca'
- name: MPLCONFIGDIR
Expand Down
4 changes: 4 additions & 0 deletions charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ frontend:
#-- the target cpu utilization percentage, is from request cpu and NOT LIMIT CPU.
targetCPUUtilizationPercentage: 80
#-- the service for the component. for inter namespace communication, use the service name as the hostname.

gunicorn:
logLevel: "info"

service:
#-- enable or disable the service.
enabled: true
Expand Down
3 changes: 2 additions & 1 deletion frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ DEBUG='False'
GUNICORN_WORKERS='2'
GUNICORN_LIMIT_REQ_LINE=4094
GUNICORN_LIMIT_REQ_FIELDSIZE=8190
GUNICORN_TIMEOUT=1800
GUNICORN_TIMEOUT=1800
GUNICORN_LOG_LEVEL='info'
184 changes: 0 additions & 184 deletions frontend/openshift.deploy.yml

This file was deleted.

Loading

0 comments on commit 69787b0

Please sign in to comment.