forked from driftlessaf/terraform-infra-reconcilers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
80 lines (69 loc) · 1.81 KB
/
variables.tf
File metadata and controls
80 lines (69 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
Copyright 2026 Chainguard, Inc.
SPDX-License-Identifier: Apache-2.0
*/
variable "project_id" {
description = "The GCP project ID"
type = string
}
variable "name" {
description = "The name of the reconciler (base name without suffixes)"
type = string
}
variable "service_name" {
description = "The name of the reconciler service (defaults to name-rec)"
type = string
default = ""
}
variable "workqueue_name" {
description = "The name of the workqueue (defaults to name-wq)"
type = string
default = ""
}
// Workqueue configuration
variable "max_retry" {
description = "The maximum number of retry attempts for workqueue tasks"
type = number
default = 100
}
variable "concurrent_work" {
description = "The amount of concurrent work the workqueue dispatches"
type = number
default = 20
}
variable "shards" {
description = "Number of workqueue shards. When > 1, dashboard shows per-shard metrics."
type = number
default = 1
}
// Section visibility
variable "sections" {
description = "Configure visibility of optional dashboard sections"
type = object({
github = optional(bool, false)
agents = optional(bool, false)
})
default = {}
}
// Alert configuration
variable "alerts" {
description = "Map of alert names to alert configurations"
type = map(object({
displayName = string
documentation = string
userLabels = map(string)
project = string
notificationChannel = string
}))
default = {}
}
variable "notification_channels" {
description = "List of notification channels for alerts"
type = list(string)
default = []
}
variable "labels" {
description = "Additional labels to add to the dashboard"
type = map(string)
default = {}
}