Skip to content

Commit

Permalink
helm: make cache TTL configurable
Browse files Browse the repository at this point in the history
Signed-off-by: elchenberg <elchenberg@users.noreply.github.com>
  • Loading branch information
elchenberg committed Aug 31, 2022
1 parent 2580ea1 commit cec0b63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/trivy/templates/configmap.yaml
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions helm/trivy/values.yaml
Expand Up @@ -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
Expand Down

0 comments on commit cec0b63

Please sign in to comment.