Skip to content

Commit 201158f

Browse files
committed
fix example
1 parent a91b146 commit 201158f

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

examples/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module "example" {
4646
version = ">= 0.1.0"
4747

4848
notification_channels = var.notification_channels
49-
project = var.project
49+
project_id = var.project_id
5050
cloud_sql = local.cloud_sql
5151
kyverno = {
5252
cluster_name = "test-cluster"

examples/test.tfvars

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
project = "Simple project"
2-
1+
project_id = "test-project"
32
notification_channels = [
43
"cloud_support_email",
54
"slack-channel"

examples/variables.tf

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11

2-
variable "project" {
3-
type = string
4-
default = "test-project"
2+
variable "project_id" {
3+
description = "The Google Cloud project ID where logging exclusions will be created"
4+
type = string
55
}
66

77
variable "notification_channels" {
8-
type = list(string)
9-
default = []
8+
description = "List of notification channel IDs to notify when an alert is triggered"
9+
type = list(string)
10+
default = []
1011
}
1112

1213
variable "kyverno" {
13-
description = "Configurazione completa del monitoraggio Kyverno"
14+
description = "Configuration for Kyverno monitoring alerts. Allows customization of cluster name, project, notification channels, alert documentation, metric thresholds, auto-close timing, enablement, extra filters, and namespace."
1415
type = object({
15-
cluster_name = string
16-
project_id = optional(string, null)
17-
notification_channels = optional(list(string), [])
18-
alert_documentation = optional(string, "Kyverno controllers produced ERROR logs in namespace kyverno.")
19-
use_metric_threshold = optional(bool, true)
20-
metric_threshold_count = optional(number, 2)
21-
metric_lookback_minutes = optional(number, 1)
22-
auto_close_seconds = optional(number, 3600)
23-
enabled = optional(bool, true)
24-
filter_extra = optional(string, "")
25-
namespace = optional(string, "kyverno")
16+
cluster_name = string
17+
project_id = optional(string, null)
18+
notification_channels = optional(list(string), [])
19+
logmatch_notification_rate_limit = optional(string, "300s")
20+
alert_documentation = optional(string, null)
21+
use_metric_threshold = optional(bool, false)
22+
metric_threshold_count = optional(number, 2)
23+
metric_lookback_minutes = optional(number, 1)
24+
auto_close_seconds = optional(number, 3600)
25+
enabled = optional(bool, true)
26+
filter_extra = optional(string, "")
27+
namespace = optional(string, "kyverno")
2628
})
2729
}

0 commit comments

Comments
 (0)