Skip to content

Commit 0b66fb3

Browse files
authored
feat: added config for additional server annotations (#1821)
* added config for additional server annotations * updated helm docs
1 parent cad62d7 commit 0b66fb3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

deploy/helm/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ Keeps security report resources updated
7373
| operator.scanJobsRetryDelay | string | `"30s"` | scanJobsRetryDelay the duration to wait before retrying a failed scan job |
7474
| operator.scanNodeCollectorLimit | int | `1` | scanNodeCollectorLimit the maximum number of node collector jobs create by the operator |
7575
| operator.scannerReportTTL | string | `"24h"` | scannerReportTTL the flag to set how long a report should exist. "" means that the ScannerReportTTL feature is disabled |
76+
| operator.serverAdditionalAnnotations | object | `{}` | serverAdditionalAnnotations the flag to set additional annotations for the trivy server pod |
7677
| operator.trivyServerHealthCheckCacheExpiration | string | `"10h"` | trivyServerHealthCheckCacheExpiration The flag to set the interval for trivy server health cache before it invalidate |
7778
| operator.vulnerabilityScannerEnabled | bool | `true` | the flag to enable vulnerability scanner |
7879
| operator.vulnerabilityScannerScanOnlyCurrentRevisions | bool | `true` | vulnerabilityScannerScanOnlyCurrentRevisions the flag to only create vulnerability scans on the current revision of a deployment. |

deploy/helm/templates/trivy-server/statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ spec:
3333
metadata:
3434
annotations:
3535
checksum/config: 7fcc66ace3f98462349856795765021e7bf7a0106f28439a9f6dc74257404370
36+
{{- with .Values.operator.serverAdditionalAnnotations }}
37+
{{- toYaml . | nindent 8 }}
38+
{{- end }}
3639
labels:
3740
{{- with .Values.trivy.podLabels }}
3841
{{- toYaml . | nindent 8 }}

deploy/helm/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ operator:
139139
# be aware of metrics cardinality is significantly increased with this feature enabled.
140140
metricsClusterComplianceInfo: false
141141

142+
# -- serverAdditionalAnnotations the flag to set additional annotations for the trivy server pod
143+
serverAdditionalAnnotations: {}
144+
142145
# -- webhookBroadcastURL the flag to set reports should be sent to a webhook endpoint. "" means that the webhookBroadcastURL feature is disabled
143146
webhookBroadcastURL: ""
144147

0 commit comments

Comments
 (0)