Include volume mounts in cronjob service. #152

Open
opened 2025-07-25 18:56:38 +00:00 by jpsnyder · 1 comment
jpsnyder commented 2025-07-25 18:56:38 +00:00 (Migrated from github.com)

When adding a katenary.v3/cronjob label, shouldn't the volume mounts setup by that service be included in the cronjob as well?

For example, I should expect my persistent volume be available when running the cron job in the following service.

indexer:
    image: my-indexer
    volumes:
        - indexer-data:/data
     labels:
        katenary.v3/cronjobs: |-
          command: update_index
          schedule: "0 0 * * *"
When adding a `katenary.v3/cronjob` label, shouldn't the volume mounts setup by that service be included in the cronjob as well? For example, I should expect my persistent volume be available when running the cron job in the following service. ```yaml indexer: image: my-indexer volumes: - indexer-data:/data labels: katenary.v3/cronjobs: |- command: update_index schedule: "0 0 * * *" ```

That's right. I missed this, I will add volumes in the Cronjobs

That's right. I missed this, I will add volumes in the Cronjobs
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Katenary/katenary#152
No description provided.