Skip to content

Commit

Permalink
NODE-5565 [Sidecar] Add configuration parameter for Nginx extended lo…
Browse files Browse the repository at this point in the history
…gging
  • Loading branch information
braek-neck committed Jan 16, 2025
1 parent adcf9fd commit ffb993f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.11
1.6.0
4 changes: 4 additions & 0 deletions files/template.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ volumes:
value: "{{ .Config.nginx.tarantoolUpstream.server.maxConns }}"
- name: NGINX_TARANTOOL_UPSTREAM_SERVER_MAX_CONNS
value: "{{ .Config.nginx.tarantoolUpstream.server.failTimeout }}"
- name: SIDECAR_NGINX_LOGS_EXTENDED
value: "{{ .Config.sidecar.nginx.logs.extended }}"
- name: SIDECAR_NGINX_LOGS_FORMAT
value: "{{ .Config.sidecar.nginx.logs.format }}"
{{ if (isSet .ObjectMeta.Annotations (withAP "nginx-http-include")) -}}
- name: NGINX_HTTP_INCLUDE
value: "{{ index .ObjectMeta.Annotations (withAP `nginx-http-include`) }}"
Expand Down
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ kubeVersion: ">=1.19.16-0"
annotations:
artifacthub.io/images: |
- name: sidecar
image: wallarm/sidecar:5.2.11
image: wallarm/sidecar:5.2.0-rc1
- name: sidecar-controller
image: wallarm/sidecar-controller:1.3.11
- name: node-helpers
Expand Down
9 changes: 7 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ config:
image:
registry: docker.io
image: wallarm/sidecar
tag: 5.2.11
tag: 5.2.0-rc1
pullPolicy: IfNotPresent
### Shared security context for all (init and regular) containers in sidecar schema except `iptables` container.
### For `iptables` container it is described in `sidecar.initContainers.iptables.securityContext` value
Expand Down Expand Up @@ -303,6 +303,11 @@ config:
# limits:
# cpu: 100m
# memory: 64Mi
### Nginx config
nginx:
logs:
extended: true
format: json

### Profiles which can be used by setting Pod's annotation 'sidecar.wallarm.io/profile: name-of-profile'
###
Expand Down Expand Up @@ -765,7 +770,7 @@ controller:
image:
registry: docker.io
image: wallarm/sidecar-controller
tag: 1.3.11
tag: 1.6.0
pullPolicy: IfNotPresent
# -- Admission webhook configuration
# @default -- *See below for details*
Expand Down
2 changes: 2 additions & 0 deletions test/smoke/run-smoke-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,5 @@ EXEC_CMD="env $GITHUB_VARS $RUN_TESTS -n ${PYTEST_WORKERS} ${PYTEST_ARGS}"
kubectl exec pytest ${EXEC_ARGS} -- ${EXEC_CMD} || get_logs_and_fail
extra_debug_logs
clean_allure_report

kubectl logs ${POD} -c sidecar-proxy

0 comments on commit ffb993f

Please sign in to comment.