From fd151830d7d1ca9466b185518b71f8d0129c28a5 Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Mon, 18 May 2026 12:31:59 +0200 Subject: [PATCH] feat: allow setting pagination cache ttl Co-authored-by: Claude --- .../trustify/templates/services/server/030-Deployment.yaml | 5 +++++ charts/trustify/values.schema.json | 4 ++++ charts/trustify/values.schema.yaml | 5 +++++ 3 files changed, 14 insertions(+) diff --git a/charts/trustify/templates/services/server/030-Deployment.yaml b/charts/trustify/templates/services/server/030-Deployment.yaml index ef6a0f0..3d21129 100644 --- a/charts/trustify/templates/services/server/030-Deployment.yaml +++ b/charts/trustify/templates/services/server/030-Deployment.yaml @@ -76,6 +76,11 @@ spec: value: {{ . | quote }} {{- end }} + {{- with $mod.module.paginationCacheTtl }} + - name: TRUSTD_PAGINATION_TOTAL_CACHE_TTL + value: {{ . | quote }} + {{- end }} + {{- if eq ( include "trustification.openshift.useServiceCa" .root ) "true" }} - name: CLIENT_TLS_CA_CERTIFICATES value: /run/secrets/kubernetes.io/serviceaccount/service-ca.crt diff --git a/charts/trustify/values.schema.json b/charts/trustify/values.schema.json index ff67e9a..eb19b2f 100644 --- a/charts/trustify/values.schema.json +++ b/charts/trustify/values.schema.json @@ -238,6 +238,10 @@ "maximumCacheSize": { "description": "The maximum number of the bytes the analysis cache will hold before evicting entries.\n", "$ref": "#/definitions/ByteSize" + }, + "paginationCacheTtl": { + "type": "string", + "description": "The TTL for the pagination total-count cache (humantime, e.g. \"60s\", \"5m\").\nIf not set, the application default of \"60s\" is used.\n" } } } diff --git a/charts/trustify/values.schema.yaml b/charts/trustify/values.schema.yaml index a6433c2..6133bc8 100644 --- a/charts/trustify/values.schema.yaml +++ b/charts/trustify/values.schema.yaml @@ -208,6 +208,11 @@ properties: description: | The maximum number of the bytes the analysis cache will hold before evicting entries. $ref: "#/definitions/ByteSize" + paginationCacheTtl: + type: string + description: | + The TTL for the pagination total-count cache (humantime, e.g. "60s", "5m"). + If not set, the application default of "60s" is used. importer: description: |