add timezone option
Gitea/resticbackup/pipeline/head This commit looks good
Details
Gitea/resticbackup/pipeline/head This commit looks good
Details
This commit is contained in:
parent
e08ff192ce
commit
61a0024ac3
9
main.tf
9
main.tf
|
@ -55,6 +55,12 @@ variable "schedule" {
|
|||
default = "15 0 * * *"
|
||||
}
|
||||
|
||||
variable "schedule_timezone" {
|
||||
type = string
|
||||
description = "timezone the schedule is interpreted as"
|
||||
default = "US/Pacific"
|
||||
}
|
||||
|
||||
variable "suspend" {
|
||||
type = bool
|
||||
description = "suspend the cronjob"
|
||||
|
@ -86,8 +92,9 @@ resource "kubernetes_cron_job_v1" "scraper" {
|
|||
}
|
||||
spec {
|
||||
schedule = var.schedule
|
||||
concurrency_policy = "Replace"
|
||||
timezone = var.schedule_timezone
|
||||
suspend = var.suspend
|
||||
concurrency_policy = "Replace"
|
||||
job_template {
|
||||
metadata {}
|
||||
spec {
|
||||
|
|
Loading…
Reference in New Issue