From 609c34527bc8aa4a891e258fa898cc6ad0ad149e Mon Sep 17 00:00:00 2001 From: Ral G <39119258+ralongit@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:38:41 +0300 Subject: [PATCH] Upgrade `logzio-trivy` chart to v0.3.5 (#545) - Added `affinity` ,`nodeSelector` and `tolerations` to the deployment. --- charts/logzio-trivy/Chart.yaml | 2 +- charts/logzio-trivy/README.md | 2 ++ charts/logzio-trivy/templates/deployment.yaml | 14 +++++++++++++- charts/logzio-trivy/values.yaml | 6 +++++- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/charts/logzio-trivy/Chart.yaml b/charts/logzio-trivy/Chart.yaml index a5b63549..763dc9ef 100644 --- a/charts/logzio-trivy/Chart.yaml +++ b/charts/logzio-trivy/Chart.yaml @@ -5,7 +5,7 @@ keywords: - logging - trivy - security -version: 0.3.4 +version: 0.3.5 appVersion: 0.2.3 sources: - https://github.com/logzio/logzio-helm diff --git a/charts/logzio-trivy/README.md b/charts/logzio-trivy/README.md index 0731c092..4c74bee3 100644 --- a/charts/logzio-trivy/README.md +++ b/charts/logzio-trivy/README.md @@ -75,6 +75,8 @@ In these cases we can use the following `--set` command to use an alternative im ## Changelog +- **0.3.5** + - Added `affinity` ,`nodeSelector` and `tolerations` to the deployment. - **0.3.4** - Bump Trivy-Operator version to `0.24.1`. - **0.3.3**: diff --git a/charts/logzio-trivy/templates/deployment.yaml b/charts/logzio-trivy/templates/deployment.yaml index 721a780c..160cc27a 100644 --- a/charts/logzio-trivy/templates/deployment.yaml +++ b/charts/logzio-trivy/templates/deployment.yaml @@ -38,4 +38,16 @@ spec: value: {{ .Values.schedule }} - name: LOG_LEVEL value: {{ .Values.scriptLogLevel }} - terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} \ No newline at end of file + terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 2 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 2 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 2 }} + {{- end }} \ No newline at end of file diff --git a/charts/logzio-trivy/values.yaml b/charts/logzio-trivy/values.yaml index 751e95ca..1f84bca5 100644 --- a/charts/logzio-trivy/values.yaml +++ b/charts/logzio-trivy/values.yaml @@ -46,4 +46,8 @@ secrets: logzioListener: "" # Log level of the script that sends security risk to Logz.io. Can be one of: DEBUG, INFO, WARNING, ERROR, CRITICAL. -scriptLogLevel: INFO \ No newline at end of file +scriptLogLevel: INFO + +affinity: {} +toleations: {} +nodeSelector: {} \ No newline at end of file