diff --git a/changelog.d/2-features/gundeck-configure-notificationTTL b/changelog.d/2-features/gundeck-configure-notificationTTL new file mode 100644 index 00000000000..c7dc6f5a2c5 --- /dev/null +++ b/changelog.d/2-features/gundeck-configure-notificationTTL @@ -0,0 +1,3 @@ +Make gundeck's notificationTTL configurable. The value defines how long +notifications are (at most) stored in the database. Decreasing this value e.g. +helps to safe database space on test environments. diff --git a/charts/gundeck/templates/configmap.yaml b/charts/gundeck/templates/configmap.yaml index cac6782ab9a..bd49b906760 100644 --- a/charts/gundeck/templates/configmap.yaml +++ b/charts/gundeck/templates/configmap.yaml @@ -55,7 +55,7 @@ data: settings: httpPoolSize: 1024 - notificationTTL: 2419200 + notificationTTL: {{ required "config.notificationTTL" .notificationTTL }} bulkPush: {{ .bulkPush }} {{- if hasKey . "perNativePushConcurrency" }} perNativePushConcurrency: {{ .perNativePushConcurrency }} diff --git a/charts/gundeck/values.yaml b/charts/gundeck/values.yaml index 75f3ce54ef7..80816a0eaad 100644 --- a/charts/gundeck/values.yaml +++ b/charts/gundeck/values.yaml @@ -57,6 +57,11 @@ config: # the database if notifications have inlined payloads. internalPageSize: 100 + # TTL of stored notifications in Seconds. After this period, notifications + # will be deleted and thus not delivered. + # The default is 28 days. + notificationTTL: 2419200 + serviceAccount: # When setting this to 'false', either make sure that a service account named # 'gundeck' exists or change the 'name' field to 'default'