diff --git a/manifests/configmap.yaml b/manifests/configmap.yaml index 6d51053bb..7db161500 100644 --- a/manifests/configmap.yaml +++ b/manifests/configmap.yaml @@ -102,6 +102,7 @@ data: logical_backup_s3_sse: "AES256" logical_backup_s3_retention_time: "" logical_backup_schedule: "30 00 * * *" + # maintenance_windows: "Sat:22:00-23:59,Sun:00:00-01:00" major_version_upgrade_mode: "manual" # major_version_upgrade_team_allow_list: "" master_dns_name_format: "{cluster}.{namespace}.{hostedzone}" diff --git a/manifests/postgresql-operator-default-configuration.yaml b/manifests/postgresql-operator-default-configuration.yaml index d4f9fc812..0817a200a 100644 --- a/manifests/postgresql-operator-default-configuration.yaml +++ b/manifests/postgresql-operator-default-configuration.yaml @@ -16,6 +16,9 @@ configuration: # ignore_instance_limits_annotation_key: "" # ignore_resources_limits_annotation_key: "" # kubernetes_use_configmaps: false + # maintenance_windows: + # - "Sat:22:00-23:59" + # - "Sun:00:00-01:00" max_instances: -1 min_instances: -1 resync_period: 30m diff --git a/pkg/cluster/util_test.go b/pkg/cluster/util_test.go index e5622b9ac..ea3e81e89 100644 --- a/pkg/cluster/util_test.go +++ b/pkg/cluster/util_test.go @@ -735,7 +735,7 @@ func TestIsInMaintenanceWindow(t *testing.T) { { name: "global maintenance windows all day", windows: nil, - configWindows: []string{"00:00-23:59"}, + configWindows: []string{"00:00-02:00", "02:00-23:59"}, expected: true, }, }