Skip to content

Commit

Permalink
chore: add successfulScansHistoryLimit and failedScansHistoryLimit fi…
Browse files Browse the repository at this point in the history
…elds on helm chart
  • Loading branch information
matheusfm committed Sep 4, 2023
1 parent 1f6889a commit e7ee82e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/zora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ The following table lists the configurable parameters of the Zora chart and thei
| operator.log.timeEncoding | string | `"rfc3339"` | Log time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano') |
| scan.misconfiguration.enabled | bool | `true` | Specifies whether misconfiguration scan is enabled |
| scan.misconfiguration.schedule | string | Cron expression for every hour at the current minute + 5 minutes | Cluster scan schedule in Cron format for misconfiguration scan |
| scan.misconfiguration.successfulScansHistoryLimit | int | `1` | The number of successful finished scans and their issues to retain. |
| scan.misconfiguration.plugins | list | `["marvin","popeye"]` | Misconfiguration scanners plugins |
| scan.vulnerability.enabled | bool | `true` | Specifies whether vulnerability scan is enabled |
| scan.vulnerability.schedule | string | Cron expression for every day at the current hour and minute + 5 minutes | Cluster scan schedule in Cron format for vulnerability scan |
| scan.vulnerability.successfulScansHistoryLimit | int | `1` | The number of successful finished scans and their issues to retain. |
| scan.vulnerability.plugins | list | `["trivy"]` | Vulnerability scanners plugins |
| scan.worker.image.repository | string | `"ghcr.io/undistro/zora/worker"` | worker image repository |
| scan.worker.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion |
Expand Down
2 changes: 2 additions & 0 deletions charts/zora/templates/clusterscan/clusterscan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
clusterRef:
name: {{ include "zora.clusterName" . }}
schedule: {{ include "zora.misconfigSchedule" . | quote }}
successfulScansHistoryLimit: {{ .Values.scan.misconfiguration.successfulScansHistoryLimit }}
{{- if .Values.scan.misconfiguration.plugins }}
plugins:
{{- range .Values.scan.misconfiguration.plugins }}
Expand All @@ -52,6 +53,7 @@ spec:
clusterRef:
name: {{ include "zora.clusterName" . }}
schedule: {{ include "zora.vulnSchedule" . | quote }}
successfulScansHistoryLimit: {{ .Values.scan.vulnerability.successfulScansHistoryLimit }}
{{- if .Values.scan.vulnerability.plugins }}
plugins:
{{- range .Values.scan.vulnerability.plugins }}
Expand Down
4 changes: 4 additions & 0 deletions charts/zora/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ scan:
# -- Cluster scan schedule in Cron format for misconfiguration scan
# @default -- Cron expression for every hour at the current minute + 5 minutes
schedule: ""
# -- The number of successful finished scans and their issues to retain.
successfulScansHistoryLimit: 1
# -- Misconfiguration scanners plugins
plugins:
- marvin
Expand All @@ -153,6 +155,8 @@ scan:
# -- Cluster scan schedule in Cron format for vulnerability scan
# @default -- Cron expression for every day at the current hour and minute + 5 minutes
schedule: ""
# -- The number of successful finished scans and their issues to retain.
successfulScansHistoryLimit: 1
# -- Vulnerability scanners plugins
plugins:
- trivy
Expand Down

0 comments on commit e7ee82e

Please sign in to comment.