mirror of
https://github.com/bitnami/charts.git
synced 2026-08-11 14:54:20 +08:00
[bitnami/mastodon] Tootctl media management (#16364)
* Initial commit of tootctlMediaManagement/configmap.yaml Signed-off-by: Joel Parker <joelsparker@gmail.com> * Initial commit of tootctlMediaManagement/cronjob.yaml The start of a CronJob that uses tootctl to manage cache usage of headers, avators, and media attachments. Signed-off-by: Joel Parker <joelsparker@gmail.com> * Add tootctlMediaManagement configuration to values.yaml The tootctlMediaManagement enables: - Removal of cached attachments including the number of days old the files are - Removal of cached avatar images - Removal of cached headers for cached profiles - Removal of orphaned files - Reomval of cached remote custom emjoi files - Setting a cronSchedule for the CronJob - Setting the failedJobsHistoryLimit for the CronJob - Setting the successfulJobsHistoryLimit for the CronJob Signed-off-by: Joel Parker <joelsparker@gmail.com> * Add new tootctl media helpers mastodon.tootctlMediaManagement.includeFollows - Prints out --include-follows if needed for tootctl commands mastodon.tootctlMediaManagement.fullname - Prints the full name for the tootctl-media used in the configMap and cronJob Signed-off-by: Joel Parker <joelsparker@gmail.com> * Use tootctlMediaManagement from values.yaml in tootctlMediaManagement templates Signed-off-by: Joel Parker <joelsparker@gmail.com> * Document tootctlMediaManagement options from values.yaml to README.md Signed-off-by: Joel Parker <joelsparker@gmail.com> * Bump Chart.yaml version to 1.4.0 Signed-off-by: Joel Parker <joelsparker@gmail.com> * Make tootctlMediaManagement's concurrencyPolicy configurable via values.yaml This was a request from the Bitnami Charts review of the PR. Signed-off-by: Joel Parker <joelsparker@gmail.com> --------- Signed-off-by: Joel Parker <joelsparker@gmail.com> Signed-off-by: joelparker <joelsparker@gmail.com> Signed-off-by: Rafael Ríos Saavedra <rrios@vmware.com> Co-authored-by: Rafael Ríos Saavedra <rrios@vmware.com>
This commit is contained in:
co-authored by
Rafael Ríos Saavedra
parent
49d749143b
commit
10711912ed
@@ -1051,6 +1051,44 @@ streaming:
|
||||
##
|
||||
sessionAffinityConfig: {}
|
||||
|
||||
## @section Mastodon Media Management Cronjob Parameters
|
||||
##
|
||||
|
||||
tootctlMediaManagement:
|
||||
## @param tootctlMediaManagement.enabled Enable Cronjob to manage all media caches
|
||||
##
|
||||
enabled: false
|
||||
## @param tootctlMediaManagement.removeAttachments Enable removing attachements
|
||||
removeAttachments: true
|
||||
## @param tootctlMediaManagement.removeAttachmentsDays Number of days old media attachments must be for removal
|
||||
removeAttachmentsDays: 30
|
||||
## @param tootctlMediaManagement.removeCustomEmoji Enable removal of cached remote emoji files
|
||||
removeCustomEmoji: false
|
||||
## @param tootctlMediaManagement.removePreviewCards Enable removal of cached preview cards
|
||||
removePreviewCards: false
|
||||
## @param tootctlMediaManagement.removePreviewCardsDays Number of days old preview cards must be for removal
|
||||
removePreviewCardsDays: 30
|
||||
## @param tootctlMediaManagement.removeAvatars Enable removal of cached remote avatar images
|
||||
removeAvatars: false
|
||||
## @param tootctlMediaManagement.removeAvatarsDays Number of days old avatar images must be for removal
|
||||
removeAvatarsDays: 30
|
||||
## @param tootctlMediaManagement.removeHeaders Enable removal of cached profile header images
|
||||
removeHeaders: false
|
||||
## @param tootctlMediaManagement.removeHeadersDays Number of days old header images must be for removal
|
||||
removeHeadersDays: 30
|
||||
## @param tootctlMediaManagement.removeOrphans Enable removal of cached orphan files
|
||||
removeOrphans: false
|
||||
## @param tootctlMediaManagement.includeFollows Enable removal of cached avatar and header when local users are following the accounts
|
||||
includeFollows: false
|
||||
## @param tootctlMediaManagement.cronSchedule Cron job schedule to run tootctl media commands
|
||||
cronSchedule: '14 3 * * *'
|
||||
## @param tootctlMediaManagement.failedJobsHistoryLimit Number of failed jobs to keep
|
||||
failedJobsHistoryLimit: 3
|
||||
## @param tootctlMediaManagement.successfulJobsHistoryLimit Number of successful jobs to keep
|
||||
successfulJobsHistoryLimit: 3
|
||||
## @param tootctlMediaManagement.concurrencyPolicy Concurrency Policy. Should be Allow, Forbid or Replace
|
||||
concurrencyPolicy: Allow
|
||||
|
||||
## @section Mastodon Migration job Parameters
|
||||
##
|
||||
|
||||
|
||||
Reference in New Issue
Block a user