Skip to content
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

Release Node 4.8 #124

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ CONTROLLER_IMAGE = $(IMAGE):$(TAG)

### For embedding into the chart
###
SIDECAR_IMAGE := wallarm/sidecar:4.6.3-2
TARANTOOL_IMAGE := wallarm/ingress-tarantool:4.6.4-1
RUBY_IMAGE := wallarm/ingress-ruby:4.6.4-1
PYTHON_IMAGE := wallarm/ingress-python:4.6.4-1
SIDECAR_IMAGE := wallarm/sidecar:4.8.0-1
TARANTOOL_IMAGE := wallarm/ingress-tarantool:4.8.0-1
RUBY_IMAGE := wallarm/ingress-ruby:4.8.0-1
PYTHON_IMAGE := wallarm/ingress-python:4.8.0-1

### Contribution routines
###
Expand Down
4 changes: 4 additions & 0 deletions files/template.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ volumes:
value: "{{ getAnnotation .ObjectMeta (withAP `wallarm-parse-websocket`) .Config.wallarm.parseWebsocket }}"
- name: WALLARM_UNPACK_RESPONSE
value: "{{ getAnnotation .ObjectMeta (withAP `wallarm-unpack-response`) .Config.wallarm.unpackResponse }}"
- name: WALLARM_ACL_EXPORT_ENABLE
value: "{{ getAnnotation .ObjectMeta (withAP `wallarm-acl-export-enable`) .Config.wallarm.aclExportEnable }}"
- name: WALLARM_TARANTOOL_HOST
value: "{{ .Config.tarantool.host }}"
- name: WALLARM_TARANTOOL_PORT
Expand Down Expand Up @@ -270,6 +272,8 @@ volumes:
value: "{{ .Config.wallarm.api.useSSL }}"
- name: WALLARM_API_CA_VERIFY
value: "{{ .Config.wallarm.api.caVerify }}"
- name: WALLARM_LABELS
value: "group={{ getAnnotation .ObjectMeta (withAP `wallarm-node-group`) .Config.wallarm.api.nodeGroup }}"
{{- end }}

{{- define "wallarmVersion" }}
Expand Down
12 changes: 6 additions & 6 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: wallarm-sidecar
version: 4.6.5
appVersion: 4.6.3
version: 4.8.0
appVersion: 4.8.0-1
description: Sidecar controller for Kubernetes. Injects sidecar proxy based on NGINX with Wallarm module and helper services.
home: https://github.com/wallarm/sidecar
icon: https://static.wallarm.com/wallarm-logo.svg
Expand All @@ -21,12 +21,12 @@ kubeVersion: ">=1.19.16-0"
annotations:
artifacthub.io/images: |
- name: sidecar
image: wallarm/sidecar:4.6.3-2
image: wallarm/sidecar:4.8.0-1
- name: sidecar-controller
image: wallarm/sidecar-controller:1.3.2
- name: ingress-ruby
image: wallarm/ingress-ruby:4.6.4-1
image: wallarm/ingress-ruby:4.8.0-1
- name: ingress-python
image: wallarm/ingress-python:4.6.4-1
image: wallarm/ingress-python:4.8.0-1
- name: ingress-tarantool
image: wallarm/ingress-tarantool:4.6.4-1
image: wallarm/ingress-tarantool:4.8.0-1
5 changes: 5 additions & 0 deletions helm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ Gives name of image to use
secretKeyRef:
key: WALLARM_API_CA_VERIFY
name: {{ template "wallarm-sidecar.fullname" . }}-credentials
- name: WALLARM_LABELS
valueFrom:
secretKeyRef:
key: WALLARM_LABELS
name: {{ template "wallarm-sidecar.fullname" . }}-credentials
- name: WALLARM_API_TOKEN
valueFrom:
secretKeyRef:
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/postanalytics-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
{{- end }}
data:
crontab: |-
### Postanalytics service crontab
### Post-analytics service crontab
###
{{- range $k, $v := .Values.postanalytics.cron.config }}
{{- $timeout := " " }}
Expand Down
6 changes: 2 additions & 4 deletions helm/templates/postanalytics-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ spec:
- sh
- -c
- >
/opt/wallarm/ruby/usr/share/wallarm-common/synccloud --one-time &&
/opt/wallarm/ruby/usr/share/wallarm-common/sync-ip-lists --one-time -l STDOUT &&
/opt/wallarm/ruby/usr/share/wallarm-common/sync-ip-lists-source --one-time -l STDOUT {{- if eq .Values.config.wallarm.fallback "on" }} || true {{- end }};
timeout 10m /opt/wallarm/ruby/usr/share/wallarm-common/export-environment -l STDOUT || true
/opt/wallarm/ruby/usr/share/wallarm-common/register-node --force --batch --no-export-env {{- if eq .Values.config.wallarm.fallback "on" }} || true {{- end }};
/opt/wallarm/ruby/usr/share/wallarm-common/export-environment -l STDOUT || true
env:
{{- include "wallarm-sidecar.credentials" . | nindent 10 }}
{{- include "wallarm-sidecar.version" . | nindent 10 }}
Expand Down
1 change: 1 addition & 0 deletions helm/templates/shared-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ data:
WALLARM_API_PORT: {{ .Values.config.wallarm.api.port | toString | b64enc | quote }}
WALLARM_API_USE_SSL: {{ .Values.config.wallarm.api.useSSL | toString | b64enc | quote }}
WALLARM_API_CA_VERIFY: {{ .Values.config.wallarm.api.caVerify | toString | b64enc | quote }}
WALLARM_LABELS: {{ printf "group=%s" .Values.config.wallarm.api.nodeGroup | b64enc | quote }}
24 changes: 18 additions & 6 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ config:
### Verify CA during connecting to Wallarm API service: `true` or `false`
###
caVerify: true
## The name of Node group, required if API token is used to register the Node
## https://docs.wallarm.com/user-guides/nodes/nodes/#api-and-node-tokens-for-node-creation
##
nodeGroup: "defaultSidecarGroup"
### Existing secret feature allows to pull Wallarm API token from existing Kubernetes secret
###
existingSecret:
Expand Down Expand Up @@ -60,6 +64,10 @@ config:
### https://docs.wallarm.com/admin-en/configure-parameters-en/#wallarm_parse_response
###
parseResponse: "on"
### Whether to export statistics on blocked request: `on` or `off`
### https://docs.wallarm.com/admin-en/configure-parameters-en/#wallarm_acl_export_enable
###
aclExportEnable: "on"
### Whether to analyze WebSocket's messages for attacks: `on` or `off`
### https://docs.wallarm.com/admin-en/configure-parameters-en/#wallarm_parse_websocket
###
Expand Down Expand Up @@ -191,7 +199,7 @@ config:
image:
registry: docker.io
image: wallarm/sidecar
tag: "4.6.3-2"
tag: "4.8.0-1"
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 @@ -467,7 +475,7 @@ postanalytics:
image:
registry: docker.io
image: wallarm/ingress-ruby
tag: "4.6.4-1"
tag: "4.8.0-1"
pullPolicy: IfNotPresent
### Additional environment variables to pass to the container
###
Expand Down Expand Up @@ -542,11 +550,15 @@ postanalytics:
"sync-node":
schedule: "*/2 * * * *"
command: "/opt/wallarm/ruby/usr/share/wallarm-common/syncnode -f -p -r 120 -l STDOUT -L DEBUG"
"export-blocked-stats":
schedule: "* * * * *"
command: "/opt/wallarm/ruby/usr/share/wallarm-common/export-blocked-stats -l STDOUT -L DEBUG"
timeout: 24h

image:
registry: docker.io
image: wallarm/ingress-ruby
tag: "4.6.4-1"
tag: "4.8.0-1"
pullPolicy: IfNotPresent
### Additional environment variables to pass to the container
###
Expand Down Expand Up @@ -599,7 +611,7 @@ postanalytics:
image:
registry: docker.io
image: wallarm/ingress-tarantool
tag: "4.6.4-1"
tag: "4.8.0-1"
pullPolicy: IfNotPresent
### Additional environment variables to pass to the container
###
Expand Down Expand Up @@ -655,7 +667,7 @@ postanalytics:
image:
registry: docker.io
image: wallarm/ingress-python
tag: "4.6.4-1"
tag: "4.8.0-1"
pullPolicy: IfNotPresent
### Additional environment variables to pass to the container
###
Expand Down Expand Up @@ -703,7 +715,7 @@ postanalytics:
image:
registry: docker.io
image: wallarm/ingress-python
tag: "4.6.4-1"
tag: "4.8.0-1"
pullPolicy: IfNotPresent
### Additional environment variables to pass to the container
###
Expand Down