Skip to content

Commit

Permalink
feat: added config for additional server annotations (#1821)
Browse files Browse the repository at this point in the history
* added config for additional server annotations

* updated helm docs
  • Loading branch information
seekermarcel authored Feb 5, 2024
1 parent cad62d7 commit 0b66fb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Keeps security report resources updated
| operator.scanJobsRetryDelay | string | `"30s"` | scanJobsRetryDelay the duration to wait before retrying a failed scan job |
| operator.scanNodeCollectorLimit | int | `1` | scanNodeCollectorLimit the maximum number of node collector jobs create by the operator |
| operator.scannerReportTTL | string | `"24h"` | scannerReportTTL the flag to set how long a report should exist. "" means that the ScannerReportTTL feature is disabled |
| operator.serverAdditionalAnnotations | object | `{}` | serverAdditionalAnnotations the flag to set additional annotations for the trivy server pod |
| operator.trivyServerHealthCheckCacheExpiration | string | `"10h"` | trivyServerHealthCheckCacheExpiration The flag to set the interval for trivy server health cache before it invalidate |
| operator.vulnerabilityScannerEnabled | bool | `true` | the flag to enable vulnerability scanner |
| operator.vulnerabilityScannerScanOnlyCurrentRevisions | bool | `true` | vulnerabilityScannerScanOnlyCurrentRevisions the flag to only create vulnerability scans on the current revision of a deployment. |
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/templates/trivy-server/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
metadata:
annotations:
checksum/config: 7fcc66ace3f98462349856795765021e7bf7a0106f28439a9f6dc74257404370
{{- with .Values.operator.serverAdditionalAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- with .Values.trivy.podLabels }}
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ operator:
# be aware of metrics cardinality is significantly increased with this feature enabled.
metricsClusterComplianceInfo: false

# -- serverAdditionalAnnotations the flag to set additional annotations for the trivy server pod
serverAdditionalAnnotations: {}

# -- webhookBroadcastURL the flag to set reports should be sent to a webhook endpoint. "" means that the webhookBroadcastURL feature is disabled
webhookBroadcastURL: ""

Expand Down

0 comments on commit 0b66fb3

Please sign in to comment.