Skip to content

Add ability to override the timezone for backup jobs #2158

@eminaktas

Description

@eminaktas

Proposal

Operator utilizes "github.com/robfig/cron/v3" to enable cron jobs for backups. When I check the source, they support overriding the default timezone with TZ and CRON_TZ (recommended way) environment variables. It is mentioned here.

They also allow us to override timezone based on jobs. You can see Location parameter in SpecSchedule struct here.

There is also another option that doesn't require any code change which is explained here.

Use-Case

We would like to create multiple database services and they will serve different timezones. With this change, with single operator, we will be able to schedule backup jobs based on any timezone.

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions