Skip to content

Commit

Permalink
Merge pull request #1 from SatoriCyber/SGA-9999-change-maintenance-param
Browse files Browse the repository at this point in the history
SGA-999 switching to reccurence maint window
  • Loading branch information
alexku7 authored Jul 11, 2021
2 parents d5062c6 + 32e066d commit cd156e9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
4 changes: 3 additions & 1 deletion modules/private-cluster/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ resource "google_container_cluster" "primary" {
}

maintenance_policy {
daily_maintenance_window {
recurring_window {
start_time = var.maintenance_start_time
end_time = var.maintenance_end_time
recurrence = var.maintenance_recurrence
}
}

Expand Down
16 changes: 14 additions & 2 deletions modules/private-cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,20 @@ variable "network_policy_provider" {

variable "maintenance_start_time" {
type = string
description = "Time window specified for daily or recurring maintenance operations in RFC3339 format"
default = "05:00"
description = "Start time for maintenance operations in RFC3339 format"
default = "06:00"
}

variable "maintenance_end_time" {
type = string
description = "End time for maintenance operations in RFC3339 format"
default = "18:00"
}

variable "maintenance_recurrence" {
type = string
description = "Maintenance recurrence scheduler"
default = "FREQ=WEEKLY;BYDAY=SU"
}

variable "maintenance_exclusions" {
Expand Down

0 comments on commit cd156e9

Please sign in to comment.