diff --git a/helm/trivy/templates/configmap.yaml b/helm/trivy/templates/configmap.yaml index 19f52436d93..45996208888 100644 --- a/helm/trivy/templates/configmap.yaml +++ b/helm/trivy/templates/configmap.yaml @@ -9,6 +9,7 @@ data: TRIVY_CACHE_DIR: "/home/scanner/.cache/trivy" {{- if .Values.trivy.cache.redis.enabled }} TRIVY_CACHE_BACKEND: {{ .Values.trivy.cache.redis.url | quote }} + TRIVY_CACHE_TTL: {{ .Values.trivy.cache.redis.ttl | quote }} {{- end }} TRIVY_DEBUG: {{ .Values.trivy.debugMode | quote }} TRIVY_SKIP_UPDATE: {{ .Values.trivy.skipUpdate | quote }} diff --git a/helm/trivy/values.yaml b/helm/trivy/values.yaml index f4063666226..2a6f9d92d9f 100644 --- a/helm/trivy/values.yaml +++ b/helm/trivy/values.yaml @@ -113,6 +113,7 @@ trivy: redis: enabled: false url: "" # e.g. redis://redis.redis.svc:6379 + ttl: "" # e.g 3600s, 24h serviceAccount: annotations: {} # eks.amazonaws.com/role-arn: arn:aws:iam::ACCOUNT_ID:role/IAM_ROLE_NAME